summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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