Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!rochester!PT!k.gp.cs.cmu.edu!bww From: bww@k.gp.cs.cmu.edu (Bradley White) Newsgroups: comp.unix.questions,comp.unix.wizards Subject: Re: Strange makefile construct Message-ID: <1235@k.gp.cs.cmu.edu> Date: Sat, 19-Sep-87 17:22:49 EDT Article-I.D.: k.1235 Posted: Sat Sep 19 17:22:49 1987 Date-Received: Thu, 24-Sep-87 04:45:32 EDT References: <1162@nrcvax.UUCP> <4624@nsc.nsc.com> <1942@encore.UUCP> Organization: Carnegie-Mellon University, CS/RI Lines: 34 Summary: The CMU CS version of "make". Xref: mnetor comp.unix.questions:4213 comp.unix.wizards:4407 In article <1942@encore.UUCP>, sue@encore.UUCP (Sue LoVerso) writes: > In article <4624@nsc.nsc.com> woolsey@nsc.UUCP (Jeff Woolsey) writes: > >All I need now is something that turns > > > >FILES = one two three four > > > >into > > > > $(CC) $(CFLAGS) one.c two.c three.c four.c > > > > On a Multimax, running Mach: > > Script started on Tue Sep 15 11:48:27 1987 > multimax >> src.test 27 >> cat makefile > > FILES= one two three four > > all: > $(CC) $(CFLAGS) $(FILES:=.c) > > multimax >> src.test 28 >> /usr/cs/bin/make -n > cc one.c two.c three.c four.c > multimax >> src.test 29 >> exit > Script ended on Tue Sep 15 11:49:14 1987 As far as I know, using a NULL "from" string in a macro translation only works with the CMU-CS/Mach version of "make", as shown above. This version is a modification of that distributed with 4.3BSD and supports all "known" SysV features (the archive making rules are slightly different) plus RCS files and a fixed $VPATH. -- Bradley White +1-412-268-3060 CMU Computer Science Department 40 26'33"N 79 56'48"W