From f18ddb6d8dc00486b53c3973344662640fff2db0 Mon Sep 17 00:00:00 2001 From: Louie S Date: Fri, 7 Jun 2024 15:47:18 -0400 Subject: Working archive target --- .gitignore | 1 - Makefile | 3 +-- README.md | 2 +- src/Makefile | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index c1e90f1..d59a62b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ build -src/configs tmp diff --git a/Makefile b/Makefile index ca465f0..bf42583 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/README.md b/README.md index 366b689..894cf6d 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit