Hi Tim,
>
> .PHONY : dependold
> dependold :
> makedepend -Y ${C_FILES}
>
>
> I need to change to the following to expand prerequisites (using VPATH):
>
> depend : ${C_FILES}
> makedepend -Y $^
>
> How do I fold .PHONY back into this (just in case there's ever a depend
> file around)?
Perhaps I'm missing something, but why can't you stick with
depend: $(C_FILES)
makedepend -Y $^
.PHONY: depend
Phonies can have dependecies, e.g. the `all' target that normally starts
a makefile.
Cheers,
Ralph.
--
Next meeting: Dorchester, Tue 2010-03-02 20:00
http://dorset.lug.org.uk/ http://www.linkedin.com/groups?gid=2645413
Chat: http://www.mibbit.com/?server=irc.blitzed.org&channel=%23dorset
List info: https://mailman.lug.org.uk/mailman/listinfo/dorset