summaryrefslogtreecommitdiff
path: root/docs/Makefile
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-12-10 13:07:12 +0100
committerLucas Hoffmann <l-m-h@web.de>2016-12-10 14:34:56 +0100
commita5044680a6501de8fc60385c1f5c4e133449c407 (patch)
tree90065a745bf1ed2331e3c4be772ebe4a0901f591 /docs/Makefile
parent3329e0fef50738514382c86f03328450c6747798 (diff)
Use some more variables in makefile
On Arch Linux python points to python3 and hence the makefile fails. With this change users can tell the makefile which python executable to use: make PYTHON=/some/version2/python ... or simply make PYTHON=python2 ... For sake of completeness the same is done for rm.
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/Makefile b/docs/Makefile
index 95de3969..68f7e497 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -6,6 +6,7 @@ SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = build
+PYTHON = python
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
@@ -43,13 +44,13 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"
$(COMMAND_OPTION_TABLES): ../alot/commands/__init__.py
- python source/generate_commands.py
+ $(PYTHON) source/generate_commands.py
$(CONFIG_OPTION_TABLES): ../alot/defaults/alot.rc.spec
- python source/generate_configs.py
+ $(PYTHON) source/generate_configs.py
clean:
- -rm -rf $(BUILDDIR)/*
+ -$(RM) -rf $(BUILDDIR)/*
html: $(CONFIG_OPTION_TABLES) $(COMMAND_OPTION_TABLES)
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html