Mail Archives: djgpp/1996/10/08/17:00:42
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 -