[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Pattern rules with directories

From: Christophe LYON
Subject: Re: Pattern rules with directories
Date: Tue, 21 Apr 2009 16:37:30 +0200
User-agent: Thunderbird (X11/20090302)

Send an angry letter to the build system designer.

And maybe think of implementing the implicit rules so that they're
dependent on expanded variables. Example:


$(TARGET_DIR)/%.suf1: $(DEPENDS_DIR)/%.suf2 $(DEPENDS_DIR)/%.suf3

That or implement it using a smarter static rule :).

Thanks for your answer.

At first glance I hadn't noticed that the target names are even more intricate: we do use something like
make /dir1/file.suf1 /dir2/file.suf1
(ie where only the directory name is different, but the contents will be different based on the full path name....)

I guess I'll have to think about how to be smarter :-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]