Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/5/84; site uwmacc.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!panda!talcott!harvard!seismo!uwvax!uwmacc!jwp
From: jwp@uwmacc.UUCP (Jeffrey W Percival)
Newsgroups: net.unix
Subject: Help on Make dependencies
Message-ID: <1624@uwmacc.UUCP>
Date: Thu, 31-Oct-85 15:22:34 EST
Article-I.D.: uwmacc.1624
Posted: Thu Oct 31 15:22:34 1985
Date-Received: Sat, 2-Nov-85 07:47:59 EST
Distribution: net
Organization: UWisconsin-Madison Academic Comp Center
Lines: 21


I need some help on make dependencies...  Here's what I'm trying to do:

	.SUFFIXES: .out
	.o.out: libfoo.a
		cc $*.o libfoo.a -o $*.out
	
I intend this rule to say the x.out depends on x.o as well as libfoo.a
Now, say I have a program named x.c.  Then I do this:

	make x.out
	touch libfoo.a
	make x.out

The second make says x.out is up to date, but it really needs to be
remade because the library was updated.  It seems that when I specify
a rule, I can't declare additional dependencies.  Is that right?

p.s. Thanks for the help on my $$dir question!
-- 
	Jeff Percival ...!uwvax!uwmacc!jwp