I want to do this:

  $(CONTENTS_FILES) : %.jar.contents : %/GNUmakefile

...where $(CONTENTS_FILES) is something like this:

  package1/blah.jar.contents \
  package2/foobar.jar.contents

...but I can't, because % can't be used on the right side of a static
pattern rule except to add to it (?!?!?!).  What a very odd distinction
to make.

So I COULD do this:

  $(CONTENTS_FILES) : %.jar.contents : %.GNUmakefile

...and thus package1/blah.jar.contents would depend on
package1/blah.jar.GNUmakefile.  But I want package1/blah.jar.contents to
depend on package1/GNUmakefile.

So how come I can add with reckless abandon to % but I can't work on it
with functions?  This seems just wrong to me.

So what I'm trying to do in one command is say, hey, for all contents
files in the list, each one depends on a GNUmakefile in its own
directory.  Any suggestions?

Cheers,
Laird

Reply via email to