From fb9c8650bc5d9f456a69a5f2d2220f45a24d2c63 Mon Sep 17 00:00:00 2001 From: "Peter Burkholder (@pburkholder)" Date: Tue, 17 Mar 2020 12:24:32 -0400 Subject: [PATCH] Example pattern rule with % in recipe doesn't work The example doesn't work with GNU Make 3.81 on MacOS, so I collapsed that example out. --- make.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/make.md b/make.md index cd0e41d..ebf4401 100644 --- a/make.md +++ b/make.md @@ -174,14 +174,7 @@ clean_scores.csv: raw_scores.csv edit raw_scores.csv | format > clean_scores.csv ``` -Since our cleaning process is identical for both of these rules, we can collapse them using a pattern rule: - -``` -clean_%.csv: raw_%.csv - edit raw_%.csv | format > clean_%.csv -``` - -Note that we can simplify this even further using automatic variables: +Since our cleaning process is identical for both of these rules, we can collapse them using a pattern rule and automatic variables: ``` clean_%.csv: raw_%.csv