Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!im4u!ut-sally!utah-cs!utah-gr!uplherc!nrc-ut!nrcvax!chris From: chris@nrcvax.UUCP (Chris Grevstad) Newsgroups: comp.unix.questions Subject: Re: Using subdirectories from make Message-ID: <1213@nrcvax.UUCP> Date: Mon, 5-Oct-87 23:23:01 EDT Article-I.D.: nrcvax.1213 Posted: Mon Oct 5 23:23:01 1987 Date-Received: Sat, 10-Oct-87 12:23:02 EDT References: <831@ektools.UUCP> <204@tut.cis.ohio-state.edu> <1433@ogcvax.UUCP> Reply-To: chris@minnie.UUCP (Chris Grevstad) Organization: Frobozo Items Co. Inc. Ltd. Lines: 40 schaefer@ogcvax.UUCP (Barton E. Schaefer) says: >... >The VPATH variable (found in 4.3BSD make, among others) helps a little, but >can't specify different object directories and leaves something to be desired >even in terms of local objects depending on "remote" sources. For example, >given the dependency > >foo : foo.o > $(CC) $(CFLAGS) foo.o -o foo > >where foo.c is in a VPATH-specified directory, the "right " thing happens if >you say "make foo". But if you type "make foo.o" (which works under the >default ".c.o:" dependency if foo.c is in the same directory) simply does >nothing -- doesn't even complain that it can't make foo.c. > >Is there any way to handle this? Uh, this worked ok for me. I am using the BSD4.3 make (with some local mods to handle the SYSV library stuff and the $(?:.o=.c) thing). It may be that what hacking I have done has changed the behavior of make, but I don't think so. ... Well, I just compiled up the vanilla make direct from downtown BSD4.3 and it still worked. Not sure what your problem is unless it's that you aren't using the 4.3 stuff. On a slightly different note, as long as I'm hacking on make (and have learned yacc), what kinds of things do you think make should be able to do? It must fit into the current vision of make, not the new make from Glen Fowler. -- Chris Grevstad cit-vax!elroy!nrcvax!chris@rutgers.edu hplabs!sdcrdcf!psivax!nrcvax!chris ihnp4!nrcvax!chris Where subtlety fails us we must simply make do with cream pies.