diff options
author | Louie S <louie@example.com> | 2024-06-07 15:47:18 -0400 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-06-07 15:47:18 -0400 |
commit | f18ddb6d8dc00486b53c3973344662640fff2db0 (patch) | |
tree | 7450de2dc516c25b547ba3a199dc7e24d44f5093 | |
parent | 603d3105cb16470e502f0e3d20f95d2243771e33 (diff) |
Working archive target
-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 |