summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@scu.edu>2022-12-30 11:57:22 -0800
committerLouie Shprung <lshprung@scu.edu>2022-12-30 11:57:22 -0800
commit790b9753775c20fd007dacc94b4c3860cf59dff1 (patch)
tree874a1b477991bc148566e73b53b103d63854de8d /Makefile
parent20aa42ad2c7740d64247e900e02638317b650209 (diff)
Set Makefile for ncurses
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 344a120..023d235 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-DOCSET_NAME = GNU_Autoconf
+DOCSET_NAME = ncurses
DOCSET_DIR = $(DOCSET_NAME).docset
CONTENTS_DIR = $(DOCSET_DIR)/Contents
@@ -10,8 +10,11 @@ INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx
ICON_FILE = $(DOCSET_DIR)/icon.png
ARCHIVE_FILE = $(DOCSET_NAME).tgz
-MANUAL_URL = https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.71/autoconf.html_node.tar.gz
-MANUAL_FILE = tmp/autoconf.html_node.tar.gz
+MANUAL_URL = https://invisible-island.net/archives/ncurses/ncurses.tar.gz
+MANUAL_ARCHIVE = tmp/ncurses.tar.gz
+MANUAL_SRC = tmp/ncurses-*
+MANUAL_PATH = ncurses-*/doc/html
+MANUAL_FILE = $(MANUAL_SRC)/doc/html
DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE) $(ICON_FILE)
@@ -28,9 +31,12 @@ tmp:
$(ARCHIVE_FILE): $(DOCSET)
tar --exclude='.DS_Store' -czf $@ $(DOCSET_DIR)
-$(MANUAL_FILE): tmp
+$(MANUAL_ARCHIVE): tmp
curl -o $@ $(MANUAL_URL)
+$(MANUAL_FILE): $(MANUAL_ARCHIVE)
+ tar --wildcards -x -z -f $(MANUAL_ARCHIVE) -C tmp $(MANUAL_PATH)
+
$(DOCSET_DIR):
mkdir -p $@
@@ -42,7 +48,7 @@ $(RESOURCES_DIR): $(CONTENTS_DIR)
$(DOCUMENTS_DIR): $(RESOURCES_DIR) $(MANUAL_FILE)
mkdir -p $@
- tar -x -z -f $(MANUAL_FILE) -C $@
+ cp -r $(MANUAL_FILE)/* $@
$(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR)
cp src/Info.plist $@
@@ -50,7 +56,6 @@ $(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR)
$(INDEX_FILE): src/index.sh $(DOCUMENTS_DIR)
rm -f $@
src/index.sh $@ $(DOCUMENTS_DIR)/*.html
- #ruby src/index.rb $(DOCUMENTS_DIR)/*.html | sqlite3 $@
$(ICON_FILE): src/icon.png $(DOCSET_DIR)
cp src/icon.png $@