File: Makefile

package info (click to toggle)
devscripts 2.10.69%2Bsqueeze4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,868 kB
  • ctags: 479
  • sloc: perl: 14,849; sh: 4,875; makefile: 166; ansic: 17
file content (24 lines) | stat: -rw-r--r-- 854 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include ../Makefile.common
GEN_TR_MAN1S := $(patsubst %.1,fr/%.fr.1,$(GEN_MAN1S))

all: translate $(GEN_TR_MAN1S)

translate:
	$(MAKE) -C ../scripts/ devscripts.1
	po4a --previous --no-backups devscripts-po4a.conf
	touch translate
clean:
# The po4a cleanup fails if devscripts.1 has already been cleaned up
	$(MAKE) -C ../scripts/ devscripts.1
	po4a --previous --rm-translations --no-backups devscripts-po4a.conf
	rm -f $(GEN_TR_MAN1S) translate ../scripts/devscripts.1

fr/%.fr.1: fr/%.fr.pl 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 $@