Help on Make dependencies
Jeffrey W Percival
jwp at uwmacc.UUCP
Fri Nov 1 06:22:34 AEST 1985
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
More information about the Comp.unix
mailing list