Re: Makefiles question... $(OBJECT_FILES): $(HEADER_FILES)

Henrik Carlqvist <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization SunSITE.dk - Supporting Open source
Message-ID <[email protected]>
"LiquidEyes" <[email protected]> wrote:
> I can write
> $(LIST_OF_OBJECT_FILES): Header1.h Header2.h Header3.h
> 
> and I can write
> Object1.obj: $(LIST_OF_HEADER_FILES)
> 
> but it seems I can't write
> $(LIST_OF_OBJECT_FILES): $(LIST_OF_HEADER_FILES)

Try something like this:

$(LIST_OF_OBJECT_FILES): %.o: $(LIST_OF_HEADER_FILES)

regards Henrik
-- 
The address in the header is only to prevent spam. My real address is:
hc8(at)uthyres.com Examples of addresses which go to spammers:
[email protected] root@localhost
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.