[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (Gnu Make) How to specify *.o depends on common.h?
From: |
Steven Woody |
Subject: |
Re: (Gnu Make) How to specify *.o depends on common.h? |
Date: |
Wed, 20 Jul 2005 00:06:15 +0800 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
"Paul D. Smith" <psmith@gnu.org> writes:
> %% Steven Woody <anti-spam.narkewoody@gmail.com.dont-post-to> writes:
>
> sw> in gnu make, can i specify a dependency rule which conducts the
> sw> rebuilding of all .o files as long as a common .h file change?
> sw> thanks.
>
> foo.o bar.o baz.o boz.o biz.o : common.h
i think this is not so ideal. actually, i've already defined
PROGRAM = foo bar baz boz biz
somewhere, so i thing only suffixing an .o to all above programs is not worthy
of such re-typing. some kind of reusing of $(PROGRAM) is desirable.
-
narke