From 1079fe87ac0b24e8a5f8d59b33bb649f709478d7 Mon Sep 17 00:00:00 2001 From: robochat Date: Wed, 16 Sep 2015 06:56:37 +0000 Subject: Adding a couple of lines about suffix rules to the pattern section --- make.html.markdown | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'make.html.markdown') diff --git a/make.html.markdown b/make.html.markdown index 63eb3eb7..47e3b457 100644 --- a/make.html.markdown +++ b/make.html.markdown @@ -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 #----------------------------------------------------------------------- -- cgit v1.2.3