mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
doc: Install using makefile instead of setup.py
- Prevent unnecessary copying and shipping of .xml files. - Run multiple jobs concurrently to speed up the process. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
eb91938963
commit
8734d96ce9
2 files changed
+21
-3
No files matched your search
+11
-1
@@ -24,12 +24,16 @@ MANUAL_URL="https://wiki.debian.org/{lang-fragment}FreedomBox/Manual?action=show
|
||||
MANUAL_URL_RAW="https://wiki.debian.org/{lang-fragment}FreedomBox/Manual?action=raw"
|
||||
MANUAL_PAGE_URL="https://wiki.debian.org/{lang-fragment}FreedomBox/Manual/{page}?action=show&mimetype=text%2Fdocbook"
|
||||
|
||||
DESTDIR=
|
||||
INSTALL_DIR=$(DESTDIR)/usr/share/doc/freedombox
|
||||
SCRIPTS_DIR=scripts
|
||||
|
||||
manual-pdfs=$(foreach lang,$(MANUAL_LANGUAGES),manual/$(lang)/freedombox-manual.pdf)
|
||||
manual-xmls=$(patsubst %.pdf,%.xml,$(manual-pdfs))
|
||||
OUTPUTS=$(manual-pdfs) plinth.1 manual-pages
|
||||
|
||||
INSTALL_OPTS=-D --mode=644
|
||||
|
||||
# In order to debug various problems with the documents especially
|
||||
# intermediate LaTeX state, run make as follows:
|
||||
#
|
||||
@@ -42,9 +46,15 @@ ifneq ($(DEBUG),)
|
||||
XMLTO_DEBUG_FLAGS=--noclean -p '--debug'
|
||||
endif
|
||||
|
||||
.PHONY: all
|
||||
.PHONY: all install
|
||||
all: $(OUTPUTS)
|
||||
|
||||
install: all
|
||||
for file in $(manual-pages-part-html) $(manual-pdfs); do \
|
||||
install $(INSTALL_OPTS) -t $(INSTALL_DIR)/$$(dirname $${file}) \
|
||||
$${file} ; \
|
||||
done
|
||||
|
||||
# Do not edit the manual page in this directory. The manual is
|
||||
# maintained as separate pages on the FreedomBox wiki and aggregated
|
||||
# into a single page using the MoinMoin include feature. Then it is
|
||||
|
||||
Reference in new issue
Block a user