1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
Description: Build using only python 3
Author: Valentin Vidic <vvidic@debian.org>
Last-Update: 2019-08-16
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/doc/website-v1/Makefile
+++ b/doc/website-v1/Makefile
@@ -55,6 +55,7 @@
XDGOPEN := xdg-open
NEWS := $(wildcard news/*.adoc)
NEWSDOC := $(patsubst %.adoc,gen/%/index.html,$(NEWS))
+PYTHON := python3
.PHONY: all clean deploy open
@@ -63,33 +64,33 @@
gen/index.html: index.adoc $(CRMCONF)
@mkdir -p $(dir $@)
@$(ASCIIDOC) --unsafe -b html5 -a icons -a iconsdir=/img/icons -f $(CRMCONF) -o $@ $<
- @python ./postprocess.py -o $@ $<
+ @$(PYTHON) ./postprocess.py -o $@ $<
gen/%/index.html: %.adoc $(CRMCONF)
@mkdir -p $(dir $@)
@$(ASCIIDOC) --unsafe -b html5 -a icons -a iconsdir=/img/icons -f $(CRMCONF) -o $@ $<
- @python ./postprocess.py -o $@ $<
+ @$(PYTHON) ./postprocess.py -o $@ $<
gen/history-guide/index.html: $(HISTORY_LISTINGS)
gen/man/index.html: ../generated-sources/crm.8.adoc $(CRMCONF)
@mkdir -p $(dir $@)
@$(ASCIIDOC) --unsafe -b html5 -f $(CRMCONF) -o $@ $<
- @python ./postprocess.py -o $@ $<
+ @$(PYTHON) ./postprocess.py -o $@ $<
gen/404.html: 404.adoc $(CRMCONF)
@mkdir -p $(dir $@)
@$(ASCIIDOC) --unsafe -b html5 -f $(CRMCONF) -o $@ $<
- @python ./postprocess.py -o $@ $<
+ @$(PYTHON) ./postprocess.py -o $@ $<
news.adoc: $(NEWS) $(CRMCONF)
@echo "news:" $(NEWS)
- python ./make-news.py $@ $(NEWS)
+ $(PYTHON) ./make-news.py $@ $(NEWS)
gen/news/index.html: news.adoc
@mkdir -p $(dir $@)
$(ASCIIDOC) --unsafe -b html5 -f $(CRMCONF) -o $@ $<
- @python ./postprocess.py -o $@ $<
+ @$(PYTHON) ./postprocess.py -o $@ $<
gen/css/%.css: css/%.css
@mkdir -p gen/css
@@ -128,7 +129,7 @@
gen/atom.xml: $(NEWSDOC)
@echo "atom:" $(NEWSDOC)
- python ./make-news.py gen/atom.xml $(NEWS)
+ $(PYTHON) ./make-news.py gen/atom.xml $(NEWS)
site: gen/atom.xml gen/index.html gen/404.html gen/news/index.html gen/man/index.html $(TGT) $(CSS) $(IMG) $(FONTS) $(NEWSDOC)
@which dos2unix >/dev/null && find gen -name "*.html" -type f -exec dos2unix {} \;
|