forked from jpfleury/gedit-markdown
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
21 lines (18 loc) · 793 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
menagePot:
rm -f plugins/markdown-preview/markdown-preview/locale/markdown-preview.pot
# À faire, sinon `xgettext -j` va planter en précisant que le fichier est introuvable.
touch plugins/markdown-preview/markdown-preview/locale/markdown-preview.pot
mo:
for po in $(shell find plugins/markdown-preview/markdown-preview/locale/ -name *.po);\
do\
msgfmt -o $${po%\.*}.mo $$po;\
done
po: pot
for po in $(shell find plugins/markdown-preview/markdown-preview/locale/ -name *.po);\
do\
msgmerge -o tempo $$po plugins/markdown-preview/markdown-preview/locale/markdown-preview.pot;\
rm $$po;\
mv tempo $$po;\
done
pot: menagePot
xgettext -j -o plugins/markdown-preview/markdown-preview/locale/markdown-preview.pot -L Python plugins/markdown-preview/markdown-preview/__init__.py