summaryrefslogtreecommitdiff
path: root/man/po4a/Makefile.am
blob: 11cbe47c47cc393d013b2be1360061105ba13b66 (plain)
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
## Process this file with automake to produce Makefile.in
##
## Copyright (C) 2008 Colin Watson.
##
## This file is part of man-db.
##
## man-db is free software; you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 of the License, or
## (at your option) any later version.
##
## man-db is distributed in the hope that it will be useful, but
## WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with man-db; if not, write to the Free Software Foundation,
## Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

POFILES = po/fr.po po/id.po po/nl.po po/pl.po po/ru.po

EXTRA_DIST = po4a.cfg po/man-db-manpages.pot $(POFILES)

if PO4A
# Always generate output files even if poorly translated, since Automake's
# generated rules will get upset otherwise.
PO4A_ARGS = --variable srcdir=$(top_srcdir)/man \
	    --variable builddir=$(top_builddir)/man \
	    --keep 0

all-local:
	$(PO4A) $(PO4A_ARGS) $(srcdir)/po4a.cfg

update-po:
	$(PO4A) $(PO4A_ARGS) --no-translations $(srcdir)/po4a.cfg

# Ideally we would use:
#   $(PO4A) $(PO4A_ARGS) --rm-translations $(srcdir)/po4a.cfg
# ... but that also updates PO/POT files (http://bugs.debian.org/599179).
clean-local:
	set -e; for po in $$(cat $(top_srcdir)/man/LINGUAS.po4a); do \
		rm -f ../$$po/man*/*.man*; \
	done

po/man-db-manpages.pot: update-po
endif