Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!ulysses!ulysses.att.com!gsf From: gsf@ulysses.att.com (Glenn S. Fowler) Newsgroups: comp.unix.questions Subject: Re: Make and '#' Message-ID: <14741@ulysses.att.com> Date: 10 May 91 12:15:12 GMT References: <470@mailgzrz.tu-berlin.de> <1991May7.202818.10562@ssd.kodak.com> <7729@auspex.auspex.com> Sender: netnews@ulysses.att.com Organization: AT&T Bell Labs Lines: 44 In article <7729@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>FCFLAGS = ... -W0,-inline,\#,-type ... >>works in SunOS >Works in SunOS 4.x, and in pre-4.x SunOS with the "SunPro make", anyway. in short -- how to get '\n' and '#' in (old) make actions some fun the following shell script works for some of the v7 makes and sunos4.0 $(sharp) expands to # and $(newline) expands to newline you can then use $(newline) for actions with here documents and case statements this is implementation dependent and non-portable since it takes advantage of different cmd line vs. makefile assignment parsing ----- mymake ---- #!/bin/sh /bin/make "$@" null='' sharp='$(null)#' newline='$(null) ' ----- here.mk ----- here : cat <