www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/08/17:00:42

From: dfaure AT Aurora DOT resI DOT insa-lyon DOT fr (David Faure)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Make & gunzip problems..
Date: 8 Oct 1996 20:01:20 GMT
Organization: C.I.S.M. Universite de Lyon 1 / INSA de Lyon
Lines: 44
Message-ID: <53ebug$if@tempo.univ-lyon1.fr>
References: <325A8299 DOT 708A AT brighton DOT ac DOT uk>
NNTP-Posting-Host: i209-b.resi.insa-lyon.fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rob Kramer (r DOT kramer AT brighton DOT ac DOT uk) wrote:
: Hello!

: I'm having a couple of problems which I can't find in the FAQ:

: - Make complains about 'missing separator' when it processes the makefile. 
: Inserting ASCII-9's at places does the trick but is quite inconvenient. I 
: guess this must be a common problem, but I can't find info on it in any 
: FAQ/doc. Any ideas?

: 	Rob Kramer

Hello Rob.

Looks like you're using edit to create your makefile.
The rapid way to correct your makefiles is to make a little program to do it.

Simply write the following flex program, and save it to tabrepl.l :
%%
^" "+	printf("\t");


then the following makefile (do this without edit !!!):
tabrepl.exe : tabrepl.l
	flex tabrepl.l
	gcc -s -O2 -o tabrepl.exe lexyy.c -lfl


then make, to create tabrepl.exe
then create the following batch to make the use easier : (tab.bat for example)
tabrepl.exe < makefile > makef2
copy /Y makef2 makefile

copy tabrepl.exe and tab.bat to you bin directory.
Now, when typing tab from any directory, your makefile is corrected .....

This works, but I know this is heavy : tabrepl.exe is sthg like 38400 bytes ... sorry for that!

Hope this helps.
Ask me for anything about the above !
David Faure
please cc your followups to david DOT faure AT ifhamy DOT insa-lyon DOT fr


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019