]> pere.pagekite.me Git - text-rms-personal-data-safe.git/blob - Makefile
Add more metadata to POT file.
[text-rms-personal-data-safe.git] / Makefile
1 all: A_radical_proposal_to_keep_your_personal_data_safe.nb.md
2
3 PDFS = A_radical_proposal_to_keep_your_personal_data_safe.pdf \
4 A_radical_proposal_to_keep_your_personal_data_safe.nb.pdf
5
6 pdf: $(PDFS)
7 %.pdf: %.md
8 pandoc -t latex $^ -o $@
9
10 po/A_radical_proposal_to_keep_your_personal_data_safe.pot: A_radical_proposal_to_keep_your_personal_data_safe.md
11 po4a-gettextize -f text -o markdown -m A_radical_proposal_to_keep_your_personal_data_safe.md \
12 -M UTF-8 -L UTF-8 \
13 --package-name "A radical proposal to keep your personal data safe" \
14 --copyright-holder "Richard Stallman" \
15 --package-version "n/a" \
16 | sed 's/CHARSET/UTF-8/' > $@.new && mv $@.new $@
17
18 po/A_radical_proposal_to_keep_your_personal_data_safe.nb.po: po/A_radical_proposal_to_keep_your_personal_data_safe.pot
19 po4a --no-translations --msgmerge-opt --no-location po4a.cfg
20
21 A_radical_proposal_to_keep_your_personal_data_safe.nb.md: po/A_radical_proposal_to_keep_your_personal_data_safe.nb.po A_radical_proposal_to_keep_your_personal_data_safe.md
22 po4a --translate-only A_radical_proposal_to_keep_your_personal_data_safe.nb.md po4a.cfg
23
24 po/A_radical_proposal_to_keep_your_personal_data_safe.nn.po: po/A_radical_proposal_to_keep_your_personal_data_safe.nb.po
25 ~/src/debian/pology/pologyrun pomtrans -s nob -t nno -p .nn:.nb apertium $@
26
27 clean:
28 $(RM) *~ po/*~
29 distclean: clean
30 $(RM) $(PDFS)
31
32 stats:
33 for f in po/*.po; do printf "$$f "; msgfmt --output /dev/null --statistics $$f; done