From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c93678e48b86f9d4,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1995-02-03 01:54:40 PST Path: nntp.gmd.de!Germany.EU.net!EU.net!howland.reston.ans.net!news.sprintlink.net!pipex!lyra.csx.cam.ac.uk!warwick!ral!usenet From: kgd@inf.rl.ac.uk (Keith Dancey tel (0235 44) 6373) Newsgroups: comp.unix.osf.osf1 Subject: Echoing command lines in makefiles Date: 3 Feb 1995 09:54:40 GMT Organization: The Unconfigured xvnews people Message-ID: <3gsuh0$3aru@unixfe.rl.ac.uk> Reply-To: kgd@inf.rl.ac.uk NNTP-Posting-Host: nimbus.ag.rl.ac.uk Keywords: make comment 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.