From: kgd@inf.rl.ac.uk (Keith Dancey tel (0235 44) 6373)
Subject: Echoing command lines in makefiles
Date: 3 Feb 1995 09:54:40 GMT [thread overview]
Message-ID: <3gsuh0$3aru@unixfe.rl.ac.uk> (raw)
I have a problem with make and comment lines in makefiles under OSF/1 2.0
If I have an entry in a makefile which looks like this:
target : dependency
#
# This software notice etc etc etc...
then OSF/1 V2.0 make gives:
#: No such file or directory
whilst *every* other Unix system I have tried gives:
#
# This software notice etc etc etc...
What *should* happen is that the command line following the target:dependency line,
introduced by a tab, should be passed to the Bourne shell for execution. In this
case it is a comment line.
The man page states "The dependency line can be followed by a command line. The
command line begins at the first tab indentation and can contain any shell command.
... By default, the command line is echoed to standard output."
Clearly, OSF make does not conform to its own spec.
I have tried using echo commands (to display the software notice) and get even more
bizarre results.
Is there a knack to getting OSF makefiles to display comment lines? Have I made
some stupid mistake? Is OSF make brain-damaged? If so, does anyone know whether
this is fixed in any other version?
Most grateful for any comments on this, one way or the other.
Cheers,
keith Dancey
Earth Observation Data Group.
next reply other threads:[~1995-02-03 9:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-02-03 9:54 Keith Dancey tel (0235 44) 6373 [this message]
1995-02-08 15:40 ` Echoing command lines in makefiles Tim Lucia
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox