From 603d3105cb16470e502f0e3d20f95d2243771e33 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 7 Jun 2024 15:10:52 -0400 Subject: Replace placeholders with wildcard rules --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit