3 GETTEXT_PACKAGE = status-area-displayblanking-applet
4 PACKAGE = status-area-displayblanking-applet
10 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
13 INSTALL_DATA = ${INSTALL} -m 644
24 POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
26 DISTFILES = Makefile POTFILES.in $(POFILES)
27 EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
29 POTFILES = ../src/lib-display-blanking-status-menu-widget.c
30 # This comment gets stripped out
32 CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
35 .SUFFIXES: .po .gmo .mo
41 file=`echo $* | sed 's,.*/,,'`.gmo \
42 && rm -f $$file && $(GMSGFMT) -o $$file $<
48 $(GETTEXT_PACKAGE).pot: $(POTFILES)
49 $(XGETTEXT) --package-name=$(PACKAGE) -o $(GETTEXT_PACKAGE).pot $(POTFILES)
52 @linguas="$(USE_LINGUAS)"; \
53 for lang in $$linguas; do \
54 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
56 if test -r $$lang.gmo; then \
57 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
58 echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
66 $(MAKE) $(GETTEXT_PACKAGE).pot
67 @linguas="$(USE_LINGUAS)"; \
68 for lang in $$linguas; do \
70 if test -r $$lang.po; then \
71 $(MSGMERGE) -U $$lang.po $(GETTEXT_PACKAGE).pot; \
73 cp $(GETTEXT_PACKAGE).pot $$lang.po; \