* Josip Rodin | 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. If this works, could you please remove the kludge, commit this and close the bug? TIA -- Tollef Fog Heen You Can't Win