~ubuntu-branches/ubuntu/precise/devscripts/precise-security

« back to all changes in this revision

Viewing changes to po4a/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2010-11-24 15:54:50 UTC
  • mfrom: (10.7.7 sid)
  • Revision ID: james.westby@ubuntu.com-20101124155450-05d2rz160qod25or
Tags: 2.10.69ubuntu1
* Merge with Debian; remaining changes:
  - see 2.10.68ubuntu1.
  - Default to "natty" as distribution.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
all:
 
1
include ../Makefile.common
 
2
GEN_TR_MAN1S := $(patsubst %.1,fr/%.fr.1,$(GEN_MAN1S))
 
3
 
 
4
all: translate $(GEN_TR_MAN1S)
 
5
 
 
6
translate:
 
7
        $(MAKE) -C ../scripts/ devscripts.1
2
8
        po4a --previous --no-backups devscripts-po4a.conf
 
9
        touch translate
3
10
clean:
 
11
# The po4a cleanup fails if devscripts.1 has already been cleaned up
 
12
        $(MAKE) -C ../scripts/ devscripts.1
4
13
        po4a --previous --rm-translations --no-backups devscripts-po4a.conf
 
14
        rm -f $(GEN_TR_MAN1S) translate ../scripts/devscripts.1
 
15
 
 
16
fr/%.fr.1: fr/%.fr.pl translate
 
17
        podchecker $<
 
18
        pod2man --utf8 --center=" " --release="Utilitaires Debian" $< > $@
 
19
fr/%.fr.1: fr/%.fr.dbk translate
 
20
        xsltproc --nonet -o $@ \
 
21
          /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
 
22
# xsltproc writes out to foo.1 even if you tell it to do otherwise, so we have
 
23
# to rename the file after it's generated
 
24
        mv fr/$*.1 $@