summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2024-06-07 15:10:52 -0400
committerLouie S <louie@example.com>2024-06-07 15:10:52 -0400
commit603d3105cb16470e502f0e3d20f95d2243771e33 (patch)
tree2d775cf0fd4df3e745ff1649d5e1119e13416113 /Makefile
parenta9413e16e8a8d160acb760a0971f25ef23d71e8c (diff)
Replace placeholders with wildcard rules
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index dc6ed0c..ca465f0 100644
--- a/Makefile
+++ b/Makefile
@@ -20,10 +20,8 @@ clean:
.phony: GNU_Make
GNU_Make: $(BUILD_DIR)/GNU_Make.docset
-# All docset files should be listed here
-$(BUILD_DIR)/GNU_Make.docset:
- $(SRC_MAKE_CALL) DOCSET_NAME=GNU_Make
+$(BUILD_DIR)/%.docset:
+ $(SRC_MAKE_CALL) DOCSET_NAME=$(basename $(@F))
-# All archive files should be listed here
-$(BUILD_DIR)/GNU_Make.tgz: GNU_Make
- tar --exclude='.DS_Store' -czf $@ $(BUILD_DIR)/GNU_Make.docset
+$(BUILD_DIR)/%.tgz: $(BUILD_DIR)/%.docset
+ tar --exclude='.DS_Store' -czf $@ $(basename $@).docset