On Sat, 2017-05-06 at 16:08 -0800, Britton Kerin wrote: > This seems to work: > > %.o: COMPILE = cp > %.o: %.c > $(COMPILE) $< $@ > > but it makes me a little nervous. The manual doesn't seem to mention > it in either the section on target-local variables or the one on > pattern rules. Is this well defined and intentionally supported > behavior?
Pattern-specific variables are described here: https://www.gnu.org/software/make/manual/html_node/Pattern_002dspecific.html which is the section directly after target-specific variables. _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make