Adding a couple of lines about suffix rules to the pattern section

This commit is contained in:
robochat 2015-09-16 06:56:37 +00:00
parent 2508aa0269
commit 1079fe87ac

View File

@ -111,13 +111,20 @@ small/%.png: %.svg
%.png: %.svg
@echo this rule is chosen
# however make will use the first pattern rule that can make the target
# However make will use the first pattern rule that can make the target
%.png: %.ps
@echo this rule is not chosen if %.svg and %.ps are both present
# make already has some pattern rules built-in. For instance, it knows
# how to turn *.c files into *.o files.
# Older makefiles might use suffix rules instead of pattern rules
.png.ps:
@echo this rule is similar to a pattern rule.
# Tell make about the suffix rule
.SUFFIXES: .png
#-----------------------------------------------------------------------
# Variables
#-----------------------------------------------------------------------