help-make
[Top][All Lists]
Advanced

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

Wildcard limited to partial match in a single path component?


From: Maurice van der Pot
Subject: Wildcard limited to partial match in a single path component?
Date: Fri, 13 Jan 2012 23:02:14 +0100

I am trying to port a set of clearmake/SUN make makefiles for use with
GNU make. In these makefiles I have rules like this:

  .%XB.h : %XB.itm

For some reason it does not match a path/file like this:

  .dir/fileXB.h

If I change the target to either one of these then it will match:

  %XB.h       : %XB.itm
  .%/fileXB.h : %XB.itm

It looks like the wildcard can only have a partial match on one path
component or the rule will not match. Is that a bug or is it supposed
to work like this?

Regards,
Maurice.


P.S.: Obviously the prerequisite will be different with the two
alternatives. I tried using $(patsubst .%,%,%XB.itm) with the first
alternative to compensate, but the rule would not match anymore.

-- 
Maurice van der Pot

Gnome Planner Developer  address@hidden  http://live.gnome.org/Planner

Attachment: pgpS8x1_oxVZH.pgp
Description: PGP signature


reply via email to

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