c++.command-line - spaces before target in makefiles
- "Denis Troshin" <weiv mail.ru> May 29 2004
- "Walter" <newshound digitalmars.com> May 29 2004
- "Denis Troshin" <weiv mail.ru> May 30 2004
- Scott Michel <scottm mordred.cs.ucla.edu> May 30 2004
- Denis Troshin <weiv mail.ru> May 30 2004
- "Walter" <newshound digitalmars.com> May 30 2004
Here is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!
May 29 2004
"Denis Troshin" <weiv mail.ru> wrote in message news:c9a4am$2a9d$1 digitaldaemon.com...Here is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!
Where exactly are you putting a space?
May 29 2004
In article <c9b4a8$kuj$1 digitaldaemon.com>, Walter says..."Denis Troshin" <weiv mail.ru> wrote in message news:c9a4am$2a9d$1 digitaldaemon.com...Here is an example of mak-file: test.exe : test.obj link test.obj test.obj: test.c sc -c test.c If I insert a space before target, SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile There a lot of other errors because of spaces Shame on you GUYS!
Where exactly are you putting a space?
Here are line numbers and column numbers: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c For example, if I insert space on line 1 at column 1, previous example will look like this: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c In this case SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile
May 30 2004
Denis Troshin <weiv mail.ru> wrote:Shame on you GUYS!
Where exactly are you putting a space?
Here are line numbers and column numbers: 123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c
Works a lot better if you use tabs, not spaces. Shame on you for now using the tool correctly.
May 30 2004
In article <c9b4a8$kuj$1 digitaldaemon.com>, Walter says...Where exactly are you putting a space?
Here are line numbers and column numbers: ___123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c Now at position (1, 1) is letter 't'. For example, if I insert space on line 1 at column 1, previous example will look like this: ___123456789 1: test.exe : test.obj 2: link test.obj 3: test.obj : test.c 4: sc -c test.c At position (1, 1) will be space. In this case SMAKE says: SMAKE fatal error: SNAPSHOT.MAK(1): syntax error: " ": " " missing EndOfFile in makefile
May 30 2004
That is a syntax error. Leading spaces are not allowed on target lines. For better or worse, that's how makefiles work.
May 30 2004









Scott Michel <scottm mordred.cs.ucla.edu> 