bothner@WSL.DEC.COM (03/28/89)
I found a Makefile (in the X distribution) where $*.c was used in a non-pattern rule. Though gross, it works in "standard" Ultrix make, though it doesn't work for GNU make. A simplified version is shown below. --Per Bothner Western Software Lab, Digital Equipment, 100 Hamilton Ave, Palo Alto CA 94301 bothner@wsl.dec.com ...!decwrl!bothner gilroy/test:41>rm foo.o gilroy/test:42>cat Makefile foo.o: foo.c cc -c -g $*.c gilroy/test:43>~/bin/make -v foo.o GNU Make version 3.44, by Richard Stallman and Roland McGrath. Copyright (C) 1988, 1989 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. cc -c -g .c gilroy/test:44>/bin/make foo.o cc -c -g foo.c