make: using wildcard in rule based on stem

[email protected] Wed, 22 Oct 2014 02:46:17 -0700 (PDT)
Newsgroups gmane.comp.gnu.utils
Message-ID <[email protected]>
hello group,

I want to make a rule in which the prerequisites are base on the stem, in combination on the target. Like in

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


I want file a.html be dependent on a.in, but also on all files *.a in the working dir.

Is that possible? Can I use the stem in a function in a rule?

thanks in advance! Ruud