* Echoing command lines in makefiles
@ 1995-02-03 9:54 Keith Dancey tel (0235 44) 6373
1995-02-08 15:40 ` Tim Lucia
0 siblings, 1 reply; 2+ messages in thread
From: Keith Dancey tel (0235 44) 6373 @ 1995-02-03 9:54 UTC (permalink / 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Echoing command lines in makefiles
1995-02-03 9:54 Echoing command lines in makefiles Keith Dancey tel (0235 44) 6373
@ 1995-02-08 15:40 ` Tim Lucia
0 siblings, 0 replies; 2+ messages in thread
From: Tim Lucia @ 1995-02-08 15:40 UTC (permalink / raw)
In article <3gsuh0$3aru@unixfe.rl.ac.uk>, kgd@inf.rl.ac.uk (Keith Dancey tel (0235 44) 6373) writes:
|>
|>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...
|>
|>keith Dancey
|>Earth Observation Data Group.
|>
My neighbor, Tim Bingham (tjb@zko.dec.com), and our local make guru says to
use
/usr/opt/posix/usr/bin/make
which in fact behaves the way you wish. It is rumored to become the
default make in the next major release of OSF/1.
--
===========================================================================
Timothy J. Lucia - DECladebug Email: lucia@zko.dec.com
Digital Equipment Corporation Phone: 603.881.2615
110 Spitbrook Road ZKO2-3/K06 Fax: 603.881.0120
Nashua, NH USA 03062-2698 C++ Programmers do it with class
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1995-02-08 15:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-02-03 9:54 Echoing command lines in makefiles Keith Dancey tel (0235 44) 6373
1995-02-08 15:40 ` Tim Lucia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox