summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLouie S <louie@example.com>2023-09-19 15:16:16 -0400
committerLouie S <louie@example.com>2023-09-19 15:16:16 -0400
commit1866dd507d0e36ef4cadef454424865358f435ca (patch)
treeed4976f629d3fee65eb946cae485ec8f4d70c7da /Makefile
parent24630a5f215cfc949bac6faa9864b8ed29ee4594 (diff)
NSIS docsetHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 14 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9339745..0b10046 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-#DOCSET_NAME = ...
+DOCSET_NAME = NSIS
DOCSET_DIR = $(DOCSET_NAME).docset
CONTENTS_DIR = $(DOCSET_DIR)/Contents
@@ -8,12 +8,13 @@ DOCUMENTS_DIR = $(RESOURCES_DIR)/Documents
INFO_PLIST_FILE = $(CONTENTS_DIR)/Info.plist
INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx
ICON_FILE = $(DOCSET_DIR)/icon.png
+ICON_FILE_2X = $(DOCSET_DIR)/icon@2x.png
ARCHIVE_FILE = $(DOCSET_NAME).tgz
-#SRC_ICON = src/icon.png
+SRC_ICON = src/icon.png
+SRC_ICON_2X = src/icon@2x.png
-#MANUAL_URL = ...
-#MANUAL_FILE = tmp/...
+MANUAL_FILE = manual_src/manual.tar.gz
ERROR_DOCSET_NAME = $(error DOCSET_NAME is unset)
WARNING_MANUAL_URL = $(warning MANUAL_URL is unset)
@@ -38,6 +39,9 @@ DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE)
ifdef SRC_ICON
DOCSET += $(ICON_FILE)
endif
+ifdef SRC_ICON_2X
+DOCSET += $(ICON_FILE_2X)
+endif
all: $(DOCSET)
@@ -73,7 +77,11 @@ $(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR)
$(INDEX_FILE): src/index.sh $(DOCUMENTS_DIR)
rm -f $@
- src/index.sh $@ $(DOCUMENTS_DIR)/*.html
+ src/index.sh $@ $(DOCUMENTS_DIR)/Docs/*.html
+ src/index_sub_pages.sh $@ $(DOCUMENTS_DIR)/Docs/Contents.html
-$(ICON_FILE): src/icon.png $(DOCSET_DIR)
+$(ICON_FILE): $(SRC_ICON) $(DOCSET_DIR)
cp $(SRC_ICON) $@
+
+$(ICON_FILE_2X): $(SRC_ICON_2X) $(DOCSET_DIR)
+ cp $(SRC_ICON_2X) $@