From ff4a1dd269f2fb81f95d6f07f1a0dca998a8a4ba Mon Sep 17 00:00:00 2001 From: Louie S Date: Wed, 19 Jun 2024 16:23:19 -0400 Subject: Update Makefile --- Info.plist | 14 +++++++++++++ config.mk | 64 +++++++++++---------------------------------------------- icon.png | Bin 0 -> 1617 bytes src/Info.plist | 14 ------------- src/icon.png | Bin 1617 -> 0 bytes 5 files changed, 26 insertions(+), 66 deletions(-) create mode 100644 Info.plist create mode 100644 icon.png delete mode 100644 src/Info.plist delete mode 100644 src/icon.png diff --git a/Info.plist b/Info.plist new file mode 100644 index 0000000..2850204 --- /dev/null +++ b/Info.plist @@ -0,0 +1,14 @@ + + + + + CFBundleIdentifier + gnuautoconf + CFBundleName + GNU Autoconf + DocSetPlatformFamily + autoconf + isDashDocset + + + diff --git a/config.mk b/config.mk index 5f2d284..5bbea6f 100644 --- a/config.mk +++ b/config.mk @@ -1,65 +1,25 @@ -DOCSET_NAME = GNU_Autoconf - -DOCSET_DIR = $(DOCSET_NAME).docset -CONTENTS_DIR = $(DOCSET_DIR)/Contents -RESOURCES_DIR = $(CONTENTS_DIR)/Resources -DOCUMENTS_DIR = $(RESOURCES_DIR)/Documents - -INFO_PLIST_FILE = $(CONTENTS_DIR)/Info.plist -INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx -ICON_FILE = $(DOCSET_DIR)/icon.png -ARCHIVE_FILE = $(DOCSET_NAME).tgz +SRC_ICON_FILE=$(SOURCE_DIR)/icon.png VERSION=2.72 MANUAL_URL = https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-${VERSION}/autoconf.html_node.tar.gz MANUAL_FILE = tmp/autoconf.html_node.tar.gz -DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE) $(ICON_FILE) - -all: $(DOCSET) - -archive: $(ARCHIVE_FILE) - -clean: - rm -rf $(DOCSET_DIR) $(ARCHIVE_FILE) - -tmp: - mkdir -p $@ - -$(ARCHIVE_FILE): $(DOCSET) - tar --exclude='.DS_Store' -czf $@ $(DOCSET_DIR) - $(MANUAL_FILE): tmp curl -o $@ $(MANUAL_URL) -$(DOCSET_DIR): - mkdir -p $@ - -$(CONTENTS_DIR): $(DOCSET_DIR) - mkdir -p $@ - -$(RESOURCES_DIR): $(CONTENTS_DIR) - mkdir -p $@ - $(DOCUMENTS_DIR): $(RESOURCES_DIR) $(MANUAL_FILE) mkdir -p $@ tar -x -z -f $(MANUAL_FILE) -C $@ -$(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR) - cp src/Info.plist $@ - -$(INDEX_FILE): src/index.sh $(DOCUMENTS_DIR) +$(INDEX_FILE): $(SOURCE_DIR)/src/index.sh $(DOCUMENTS_DIR) rm -f $@ - src/index.sh $@ $(DOCUMENTS_DIR)/*.html - src/index.sh -i "Entry" $@ $(DOCUMENTS_DIR)/Concept-Index.html - src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/M4-Macro-Index.html - src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/Autoconf-Macro-Index.html - src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/Autotest-Macro-Index.html - src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Cache-Variable-Index.html - src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Output-Variable-Index.html - src/index.sh -i "Function" $@ $(DOCUMENTS_DIR)/Program-_0026-Function-Index.html - src/index.sh -i "Entry" $@ $(DOCUMENTS_DIR)/Preprocessor-Symbol-Index.html - src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Environment-Variable-Index.html - -$(ICON_FILE): src/icon.png $(DOCSET_DIR) - cp src/icon.png $@ + $(SOURCE_DIR)/src/index.sh $@ $(DOCUMENTS_DIR)/*.html + $(SOURCE_DIR)/src/index.sh -i "Entry" $@ $(DOCUMENTS_DIR)/Concept-Index.html + $(SOURCE_DIR)/src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/M4-Macro-Index.html + $(SOURCE_DIR)/src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/Autoconf-Macro-Index.html + $(SOURCE_DIR)/src/index.sh -i "Macro" $@ $(DOCUMENTS_DIR)/Autotest-Macro-Index.html + $(SOURCE_DIR)/src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Cache-Variable-Index.html + $(SOURCE_DIR)/src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Output-Variable-Index.html + $(SOURCE_DIR)/src/index.sh -i "Function" $@ $(DOCUMENTS_DIR)/Program-_0026-Function-Index.html + $(SOURCE_DIR)/src/index.sh -i "Entry" $@ $(DOCUMENTS_DIR)/Preprocessor-Symbol-Index.html + $(SOURCE_DIR)/src/index.sh -i "Variable" $@ $(DOCUMENTS_DIR)/Environment-Variable-Index.html diff --git a/icon.png b/icon.png new file mode 100644 index 0000000..9b18522 Binary files /dev/null and b/icon.png differ diff --git a/src/Info.plist b/src/Info.plist deleted file mode 100644 index 2850204..0000000 --- a/src/Info.plist +++ /dev/null @@ -1,14 +0,0 @@ - - - - - CFBundleIdentifier - gnuautoconf - CFBundleName - GNU Autoconf - DocSetPlatformFamily - autoconf - isDashDocset - - - diff --git a/src/icon.png b/src/icon.png deleted file mode 100644 index 9b18522..0000000 Binary files a/src/icon.png and /dev/null differ -- cgit