summaryrefslogtreecommitdiffstats
path: root/usr/share/polkit-1/actions/po/Makefile
blob: ab8ab132f4f7da1a511a6f775d3af38fe39f5bf0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

POTFILES := $(shell cat POTFILES.in)

all: generate-xds-polkit-files

generate-pot: POTFILES.in
	intltool-update --pot --gettext-package=xds-polkit-files

generate-xds-polkit-files:
	for i in $(POTFILES); do \
		f=$$(echo $$i | sed 's/\.in//'); \
		intltool-merge --xml-style . ../$$i ../$$f; \
	done

update-po:
	for i in *.po; do \
		code=$$(echo $$i | sed 's/.po//'); \
		intltool-update --gettext-package=xds-polkit-files --dist $$code; \
	done

# vim:ts=4