Make and '#'

Heiko Weber jun. heiko at uwesa.hanse.de
Thu May 9 20:00:39 AEST 1991


jaenicke at w414zrz.zrz.tu-berlin.de (Lutz Jaenicke) writes:


>In a Makefile I need to define a Makro to a string containing the '#'-sign,
>which is the comment-sign for make:
>FCFLAGS = ... -W0,-inline,#,-type ...

>Since '#' is the comment-sign, the '#' and all following stuff is suppressed
>by make. I tried everything I know about quoting (on shell-level), nothing
>worked. Is there any way to put '#' into my macro? (If of interest, I'm
>using Apollo Domain/OS 10.3)

Put '#' into a file (foo.bar in the example), and change the line above to

FOOBAR=`cat foo.bar`
FCFLAGS = ... -W0,-inline,$(FOOBAR),-type ...

on Esix, it works.

Heiko
--
| Heiko Weber jun. | heiko at uwesa.hanse.de | private unix site |
+------------------+----------------------+-------------------+
| D-2151 Sauensiek | Loehe 3 | Germany | voice: 049-4169-1366 |



More information about the Comp.unix.questions mailing list