aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 0a298924d941e4c94d1e3c17fa103fb6411e7834 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
zip: mo
	zip - *.py *.inx locale/*/LC_MESSAGES/*.mo > imagemap.zip

validate: inkscape.extension.rng
	xmllint --noout --relaxng inkscape.extension.rng *.inx

pot: inx.its
	xgettext imagemap.inx --its=inx.its -o imagemap.pot
	xgettext imagemap.py --package-name=inx.imagemap --copyright-holder=VIATRIX.COMPUTER -jo imagemap.pot

mo:
	for po in locale/*/imagemap.po; do \
		mkdir -p "$${po%/*}/LC_MESSAGES"; \
		msgfmt -o "$${po%/*}/LC_MESSAGES/imagemap.mo" $$po; \
	done

inx.its:
	wget https://gitlab.com/inkscape/translations/-/raw/master/its/inx.its

inkscape.extension.rng:
	wget https://gitlab.com/inkscape/extensions/-/raw/master/inkex/tester/inkscape.extension.rng