/usr/share/hydrogen/data/doc/Makefile is in hydrogen-doc 0.9.7-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | ###
### must have the following commandline tools:
###
### xml2po (Debian package: poxml)
### po2xml (Debian package: poxml)
### xmlto (Debian package: xmlto)
### xmllint (Debian package: libxml2-utils)
###
MANUAL_MASTER = manual.docbook
TUTORIAL_MASTER = tutorial.docbook
ALL_MASTERS = $(MANUAL_MASTER) $(TUTORIAL_MASTER)
ALL_MANUALS = manual_en.html \
manual_es.html \
manual_fr.html \
manual_it.html \
manual_ca.html \
manual_nl.html
ALL_DOCBOOKS = manual_en.docbook \
manual_es.docbook \
manual_fr.docbook \
manual_it.docbook \
manual_ca.docbook \
manual_nl.docbook
ALL_DOCBOOKS_VALIDATED = manual_en.docbook_validated \
manual_es.docbook_validated \
manual_fr.docbook_validated \
manual_it.docbook_validated \
manual_ca.docbook_validated \
manual_nl.docbook_validated
ALL_TUTORIALS = tutorial_en.html \
tutorial_fr.html \
tutorial_it.html
ALL_POT_FILES = manual_en.pot tutorial_en.pot
XMLTO_OPTS = --stringparam section.autolabel=1 \
--stringparam toc.max.depth=2 \
--stringparam xref.with.number.and.title=0
XML2POT = xml2pot
XMLTO = xmlto
XMLLINT = xmllint
PO2XML = po2xml
all: all_manuals all_tutorials all_pot_files
all_manuals: $(ALL_MANUALS)
all_tutorials: $(ALL_TUTORIALS)
## Explicit build to avoid circular dependency
all_pot_files: $(ALL_MASTERS)
$(XML2POT) manual.docbook > manual.pot
$(XML2POT) tutorial.docbook > tutorial.pot
clean:
-rm -f $(ALL_MANUALS) $(ALL_TUTORIALS) $(ALL_DOCBOOKS) $(ALL_DOCBOOKS_VALIDATED)
%.html: %.docbook %.docbook_validated
LL=$$(echo -n $< | sed 's/.*_\(..\)\.docbook/\1/') ; \
$(XMLTO) html-nochunks $(XMLTO_OPTS) \
--stringparam l10n.gentext.language=$$LL \
$<
%.docbook_validated: %.docbook
$(XMLLINT) --noout --valid $^
touch $@
## Special rule for master manual and tutorial
%_en.docbook: %.docbook
cp -f $^ $@
manual_%.docbook: manual_%.po $(MANUAL_MASTER)
$(PO2XML) $(MANUAL_MASTER) $< > $@
#manual_%.po: $(MANUAL_MASTER)
# $(XML2POT) -u $@ $^
tutorial_%.docbook: tutorial_%.po $(TUTORIAL_MASTER)
$(PO2XML) $(TUTORIAL_MASTER) $< > $@
#tutorial_%.po: $(TUTORIAL_MASTER)
# $(XML2POT) -u $@ $^
|