Removing undistributable Debian logo (Closes: #597237).
[live-manual.git] / manual / Makefile
CommitLineData
33311716
DB
1# Makefile
2
3SHELL := sh -e
4
5LANGUAGES = $(shell cd po && ls)
6
7all: build
8
9po4a.cfg:
10 echo "[po4a_langs] $(LANGUAGES)" > po4a.cfg
11 echo "[po4a_paths] pot/\$$master.pot \$$lang:po/\$$lang/\$$master.po" >> po4a.cfg
12
5617c05d 13 for FILE in en/*.ssm en/*.ssi; \
33311716 14 do \
5617c05d 15 echo "[type: text] $${FILE} \$$lang:\$$lang/$$(basename $${FILE})" >> po4a.cfg; \
617c51af
DB
16 done
17
33311716
DB
18update:
19 @./bin/update-version.sh
20
21build: po4a.cfg
22 @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \
23 then \
24 echo "E: po4a - command not found"; \
25 echo "I: po4a can be optained from http://po4a.alioth.debian.org/"; \
26 echo "I: On Debian systems, po4a can be installed with 'apt-get install po4a'."; \
27 exit 1; \
28 fi
29
30 po4a --keep 0 --no-backups --package-name live-manual po4a.cfg
31
1f551bfa
DB
32 for LANGUAGE in $(LANGUAGES); \
33 do \
34 cp -a en/_sisu $${LANGUAGE}; \
35 done
36
33311716
DB
37clean:
38 rm -f po/*/*.po~
39
40distclean: clean
41 rm -f po4a.cfg
42 rm -rf $(LANGUAGES)
43
44rebuild: distclean update build