summaryrefslogtreecommitdiffstats
path: root/po4a/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'po4a/Makefile')
-rw-r--r--po4a/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/po4a/Makefile b/po4a/Makefile
new file mode 100644
index 0000000..e2b1258
--- /dev/null
+++ b/po4a/Makefile
@@ -0,0 +1,47 @@
+include ../Makefile.common
+GEN_TR_MAN1S := $(patsubst %.1,fr/%.fr.1,$(GEN_MAN1S))
+GEN_TR_MAN1S += $(patsubst %.1,de/%.de.1,$(GEN_MAN1S))
+
+all: translate
+# GEN_TR_MAN1S needs translate finished, serialize the calls
+ @$(MAKE) -C . transform
+transform: $(GEN_TR_MAN1S)
+
+translate: ../doc/devscripts.1
+ po4a --previous --no-backups --keep=0 devscripts-po4a.conf
+ touch translate
+
+clean: ../doc/devscripts.1
+ po4a --previous --rm-translations --no-backups devscripts-po4a.conf
+ rm -f $(GEN_TR_MAN1S) translate
+ rm -rf de fr
+
+../doc/devscripts.1:
+ # po4a translate and clean need ../doc/devscripts.1, rebuild it
+ $(MAKE) -C ../doc devscripts.1
+
+de/%.de.1: de/%.de.pl translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Debian-Hilfswerkzeuge" $< > $@
+de/%.de.1: de/%.de.pod translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Debian-Hilfswerkzeuge" $< > $@
+de/%.de.1: de/%.de.dbk translate
+ xsltproc --nonet -o $@ \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+# xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
+# to rename the file after it's generated
+ mv de/$*.1 $@
+
+fr/%.fr.1: fr/%.fr.pl translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
+fr/%.fr.1: fr/%.fr.pod translate
+ podchecker $<
+ pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
+fr/%.fr.1: fr/%.fr.dbk translate
+ xsltproc --nonet -o $@ \
+ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
+# xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
+# to rename the file after it's generated
+ mv fr/$*.1 $@