diff options
author | Louie Shprung <lshprung@scu.edu> | 2022-12-16 17:41:34 -0800 |
---|---|---|
committer | Louie Shprung <lshprung@scu.edu> | 2022-12-16 17:45:44 -0800 |
commit | 5254ccddad4183e84689ce96d889b23d001475b3 (patch) | |
tree | 0941c71ad31c3e628b84c803cdd3e29215a48a7b /Makefile | |
parent | ee103902c141cdc3dce565af453b589fd1fc7a82 (diff) |
Basic debmake docset, with pages for each major chapter
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -1,4 +1,9 @@ -DOCSET_NAME = GNU_Automake +DOCSET_NAME = debmake +PACKAGE_NAME = debmake-doc + +ifndef $(LOCALE) + LOCALE=en +endif DOCSET_DIR = $(DOCSET_NAME).docset CONTENTS_DIR = $(DOCSET_DIR)/Contents @@ -10,8 +15,7 @@ INDEX_FILE = $(RESOURCES_DIR)/docSet.dsidx ICON_FILE = $(DOCSET_DIR)/icon.png ARCHIVE_FILE = $(DOCSET_NAME).tgz -MANUAL_URL = https://www.gnu.org/software/automake/manual/automake.html_node.tar.gz -MANUAL_FILE = tmp/automake.html_node.tar.gz +MANUAL_SOURCE = /usr/share/doc/$(PACKAGE_NAME)/html DOCSET = $(INFO_PLIST_FILE) $(INDEX_FILE) $(ICON_FILE) @@ -29,7 +33,6 @@ $(ARCHIVE_FILE): $(DOCSET) tar --exclude='.DS_Store' -czf $@ $(DOCSET_DIR) $(MANUAL_FILE): tmp - curl -o $@ $(MANUAL_URL) $(DOCSET_DIR): mkdir -p $@ @@ -41,8 +44,13 @@ $(RESOURCES_DIR): $(CONTENTS_DIR) mkdir -p $@ $(DOCUMENTS_DIR): $(RESOURCES_DIR) $(MANUAL_FILE) +ifeq (,$(wildcard $(MANUAL_SOURCE))) + $(error Missing debmake-doc package) +endif mkdir -p $@ - tar -x -z -f $(MANUAL_FILE) -C $@ + cp -r $(MANUAL_SOURCE)/*.$(LOCALE).* $@ + cp -r $(MANUAL_SOURCE)/*css $@ + cp -r $(MANUAL_SOURCE)/images $@ $(INFO_PLIST_FILE): src/Info.plist $(CONTENTS_DIR) cp src/Info.plist $@ |