Prioritizing pattern rules in Make
问题 I have (roughly) this Makefile: .PHONY: all .SUFFIXES: OUT = /www/web all: $(OUT)/index.html # rule 1 %.html: %.in build_html $< $@ # rule 2 $(OUT)/%: % cp $< $@ This Makefile has a problem, since there are two different ways to build $(OUT)/index.html : build ./index.html (rule 1), then copy it to $(OUT) (rule 2). copy ./index.in to $(OUT) (rule 2), then build $(OUT)/index.html (rule 1). I want make to always prefer option 1. How can I indicate that there is a preferred order between these