On 16 ноя, 22:35, "criman...@googlemail.com" <criman...@googlemail.com> wrote: > I want to make something like this: > > %.dep: $(patsubst ../temp/%,./%, $%*.cpp) > > How to write it right? temp/lib1/file.dep must depends on c/lib1/ > file.cpp and so on.
I found it! The key is .SECONDEXPANSION: directive: http://www.gnu.org/software/automake/manual/make/Secondary-Expansion.html _______________________________________________ help-gplusplus mailing list help-gplusplus@gnu.org http://lists.gnu.org/mailman/listinfo/help-gplusplus