diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/Makefile | 1 |
4 files changed, 3 insertions, 4 deletions
@@ -1,3 +1,2 @@ build -src/configs tmp @@ -8,8 +8,7 @@ SRC_MAKE_CALL = $(MAKE) -f src/Makefile BUILD_DIR=$(BUILD_DIR) # For this target, only archive docsets that have already been built in BUILD_DIR .phony: archive -archive: - #TODO +archive: $(foreach docset,$(wildcard $(BUILD_DIR)/*.docset),$(basename $(docset)).tgz) # For this target, simply remove all docsets and tgz files from BUILD_DIR .phony: clean @@ -11,7 +11,7 @@ Usage: make DOCSET_NAME [BUILD_DIR=...] BUILD_DIR can be set to a directory to build under. The default is ./build Other possible targets: - archive - create .tgz archives for all docsets in BUILD_DIR (WIP) + archive - create .tgz archives for all docsets in BUILD_DIR clean - remove all docsets and .tgz archives from BUILD_DIR $(BUILD_DIR)/$(DOCSET_NAME).docset - equivalent to DOCSET_NAME $(BUILD_DIR)/$(DOCSET_NAME).tgz - create a .tgz archive of DOCSET_NAME diff --git a/src/Makefile b/src/Makefile index b479925..3aff8a9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,6 +10,7 @@ err: ; $(ERROR_DOCSET_NAME) endif SOURCE_DIR = src/configs/$(DOCSET_NAME) +SCRIPTS_DIR = src/scripts DOCSET_DIR = $(BUILD_DIR)/$(DOCSET_NAME).docset CONTENTS_DIR = $(DOCSET_DIR)/Contents RESOURCES_DIR = $(CONTENTS_DIR)/Resources |