[Top][All Lists]

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

Static pattern usage

From: Sam Ravnborg
Subject: Static pattern usage
Date: Fri, 3 Oct 2003 23:01:02 +0200
User-agent: Mutt/1.4.1i

I'm having troubles using static patters.
See following example:
deps_foo.o := foo.h

foo.o : % : $(deps_%) bar.h FORCE
        @echo $^


When executed I expected it to print:
foo.h bar.h FORCE

But it only prints bar.h FORCE

Is it coorect behaviour that make does not expand the variable
% is equal to foo.o in the above example, and the varibale is
constructed correct. But it is not expanded.

GNU Make 3.80
Copyright (C) 2002  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A


reply via email to

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