Thread View: net.bugs
1 messages
1 total messages
Started by John M Sellens
Sat, 29 Sep 1984 19:27
Bug in Make - comments don't work as documented
Author: John M Sellens
Date: Sat, 29 Sep 1984 19:27
Date: Sat, 29 Sep 1984 19:27
24 lines
1489 bytes
1489 bytes
The way make handles comments and the way the documentation says
they are handled are inconsistent.
The documentation says that "all characters after a aharp (#) are ignored,
as is the sharp itself" ('Make - A Program for Maintaining Computer
Programs', S.I. Feldman, page 3, under Description Files and Substitutions).
But - try this as a Makefile:
# This is a comment
all : ; echo hello # This is not a comment
# This is a comment
echo goodbye # This is not a comment either
nothing: # This is a comment
Now, I can see the reason for this, and it would otherwise be impossible
(as near as I can figure out) to get a '#' on a command line. Perhaps
the comment convention should be changed to "lines beginning with a sharp
are ignored" and forget trying to allow trailing comments ...
John M Sellens
UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!jmsellens
CSNET: jmsellens%watmath@waterloo.csnet
ARPA: jmsellens%watmath%waterloo.csnet@csnet-relay.arpa
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads