Re: multiple wildcards in a static pattern rule

2003-10-30 Thread Noel Yap
I'm not sure about your syntax. I think you might mean: $(ROOT)etc/dir1/%: % cp $< $@ chmod 644 $@ and so on. Anyway the way I'd go about this would be: $(foreach d,etc/dir1 etc/dir2 etc/dirN,$(eval $(ROOT)$(d)/%: % ; cp $< $@ && chmod 644 $@)) I haven't tested it, but it s

multiple wildcards in a static pattern rule

2003-10-30 Thread Ram Bhamidipaty
I have a series of rules like this in my Makefile: $(ROOT)etc/dir1/%: $(ROOT)etc/dir1/%: % cp $< $@ chmod 644 $@ $(ROOT)etc/dir2/%: $(ROOT)etc/dir2/%: % cp $< $@ chmod 644 $@ ... $(ROOT)etc/dirN/%: $(ROOT)etc/dirN/%: % cp $< $@ chmod 644 $@ Is th