aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-10-28 20:15:30 +0200
committerWojtek Kosior <koszko@koszko.org>2022-10-28 20:15:30 +0200
commit43ed7392cdfc734a4304284906b9d0d503381841 (patch)
tree5d78662357507aac0820825a8ace0859c395779d /Makefile
parent2a622842c38f1f9df2aee6af28bf9932d05a2ef0 (diff)
downloadhaketilo-hydrilla-43ed7392cdfc734a4304284906b9d0d503381841.tar.gz
haketilo-hydrilla-43ed7392cdfc734a4304284906b9d0d503381841.zip
[proxy] make it possible to export embedded documentation as standalone .html files and include these in the binary release tarball
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1cfdd82..f98362e 100644
--- a/Makefile
+++ b/Makefile
@@ -50,10 +50,13 @@ dist src/hydrilla/_version.py:
@printf "Generated source tarball in:\n"
@printf "./dist/hydrilla-$(GET_VER).tar.gz\n"
+doc:
+ $(GUIX_DEVSHELL) python3 setup.py build_htmldoc
+
# Make a release tarball and repack its files as writeable - this will make it
# easier for non-technical users to remove the unpacked release once they no
# longer need it.
-release: dist
+release: dist doc
$(GUIX_TM) pack -L ./hydrilla-guix -RR hydrilla \
-S /hydrilla=bin/hydrilla \
-S /hydrilla-builder=bin/hydrilla-builder \
@@ -67,6 +70,7 @@ release: dist
mkdir bin-tarball-repack/"$$RELNAME" && \
tar -C bin-tarball-repack/"$$RELNAME"/ -xf "$$PACKFILE" && \
chmod -R +w bin-tarball-repack/"$$RELNAME" && \
+ cp -R htmldoc/ bin-tarball-repack/"$$RELNAME" && \
$(DETERMINISTIC_TAR) -C bin-tarball-repack/ \
-cf "$$RELNAME".tar.gz "$$RELNAME"
@printf "Generated binary release tarball for $$(arch) in:\n"
@@ -132,7 +136,10 @@ clean-bin-tarball-repack:
clean-source-tarball-repack:
rm -rf source-tarball-repack/
-clean: clean-bin-tarball-repack clean-source-tarball-repack
+clean-doc:
+ rm -rf htmldoc/
+
+clean: clean-bin-tarball-repack clean-source-tarball-repack clean-doc
rm -rf build/ dist/ src/hydrilla.egg-info/ src/hydrilla/_version.py \
src/hydrilla/locales/messages.pot make-release.log \
haketilo-and-hydrilla-bin-*.tar.gz .mypy_cache/ .pytest_cache/
@@ -140,7 +147,7 @@ clean: clean-bin-tarball-repack clean-source-tarball-repack
rm -rf $$(find -name "__pycache__")
.PHONY: shell shell-with-haketilo \
- release dist wheel catalogs \
+ wheel dist doc release catalogs \
refresh-catalogs test run-haketilo \
mypy-lint mypy-lint-server mypy-lint-builder mypy-lint-haketilo \
clean-bin-tarball-repack clean-source-tarball-repack clean