Re: make: using wildcard in rule based on stem

[email protected] Thu, 23 Oct 2014 04:19:03 -0700 (PDT)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
Found it. Just for someone stumbles upon this, here is what I did.
It has something to do with the automatic variable scope. I don't fully understand it, but this is the solution to the problem

.SECONDEXPANSION:
$(OBJS): %.html: %.in $$(wildcard *.$$*)
    do_it $< 

For target sample.html, it depends on sample.in and on all files *.sample in the directory.

Ruud