On Tue, Jul 31, 2001 at 10:52:12PM +0200, Tollef Fog Heen wrote: > | I just tried to fix this, but it didn't seem to work. My thoughts were: > | > | */index.$(LANGUAGE).html: %/index.$(LANGUAGE).html: $(wildcard > $*/*/index.wml) > | $(wildcard $(ENGLISHSRCDIR)/News/weekly/$*/*) \ > | $(TEMPLDIR)/weeklynews/header.wml \ > | $(TEMPLDIR)/weeklynews/index.wml \ > | $(TEMPLDIR)/weeklynews/footer.wml > | > | This was just a guess based on the info in the make manual, and it didn't > | work. Looks like $* can't be used in the DEP-PATTERNS part, only COMMANDS. > | Using % instead of $* doesn't work, either. > > */index.$(LANGUAGE).html: %/index.$(LANGUAGE).html: $(shell find $* -name > index.wml) \ > $(wildcard $(ENGLISHSRCDIR)/News/weekly/$*/*) \ > $(TEMPLDIR)/weeklynews/header.wml \ > $(TEMPLDIR)/weeklynews/index.wml \ > $(TEMPLDIR)/weeklynews/footer.wml > > Seems to work. > > (At least the first part -- you might need to fix up the wildcard part > as well.) > > I would think this is a bug in make, but I don't know Make well > enough.
Tollef, your version is working. Manoj, this looks like a problem with the $(wildcard) function. Am I right? -- Digital Electronic Being Intended for Assassination and Nullification