3 CATALOGS = @WPREFSMOFILES@
5 CLEANFILES = $(DOMAIN).pot $(CATALOGS)
7 EXTRA_DIST = bg.po ca.po cs.po de.po es.po et.po fi.po fr.po fy.po hr.po hu.po \
8 it.po ja.po ko.po nl.po pt.po ru.po sk.po uk.po zh_CN.po zh_TW.po
11 $(top_srcdir)/WPrefs.app/Appearance.c \
12 $(top_srcdir)/WPrefs.app/Configurations.c \
13 $(top_srcdir)/WPrefs.app/Docks.c \
14 $(top_srcdir)/WPrefs.app/Expert.c \
15 $(top_srcdir)/WPrefs.app/Focus.c \
16 $(top_srcdir)/WPrefs.app/FontSimple.c \
17 $(top_srcdir)/WPrefs.app/Icons.c \
18 $(top_srcdir)/WPrefs.app/KeyboardShortcuts.c \
19 $(top_srcdir)/WPrefs.app/Menu.c \
20 $(top_srcdir)/WPrefs.app/MenuPreferences.c \
21 $(top_srcdir)/WPrefs.app/MouseSettings.c \
22 $(top_srcdir)/WPrefs.app/Paths.c \
23 $(top_srcdir)/WPrefs.app/Preferences.c \
24 $(top_srcdir)/WPrefs.app/TexturePanel.c \
25 $(top_srcdir)/WPrefs.app/WPrefs.c \
26 $(top_srcdir)/WPrefs.app/WindowHandling.c \
27 $(top_srcdir)/WPrefs.app/Workspace.c \
28 $(top_srcdir)/WPrefs.app/double.c \
29 $(top_srcdir)/WPrefs.app/editmenu.c \
30 $(top_srcdir)/WPrefs.app/main.c \
31 $(top_srcdir)/WPrefs.app/xmodifier.c
33 # not_yet_fully_implemented
34 # $(top_srcdir)/WPrefs.app/KeyboardSettings.c \
35 # $(top_srcdir)/WPrefs.app/Themes.c \
41 $(AM_V_GEN)$(MSGFMT) -c -o $@ $<
44 all-local: $(CATALOGS)
50 update-lang: $(DOMAIN).pot
51 $(AM_V_GEN)$(top_srcdir)/script/generate-po-from-template.sh \
52 -n "$(PACKAGE_NAME)" -v "$(PACKAGE_VERSION)" -b "$(PACKAGE_BUGREPORT)" \
53 -t "$(DOMAIN).pot" "$(srcdir)/$(PO).po"
55 $(DOMAIN).pot: $(POTFILES)
56 $(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
57 --add-comments --keyword=_ --keyword=N_ $(POTFILES)
58 @if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
61 mv -f $(DOMAIN).po $(DOMAIN).pot; \
66 install-data-local: $(CATALOGS)
67 $(mkinstalldirs) $(DESTDIR)$(localedir)
68 for n in $(CATALOGS) __DuMmY ; do \
69 if test "$$n" -a "$$n" != "__DuMmY" ; then \
70 l=`basename $$n .mo`; \
71 $(mkinstalldirs) $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
72 $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
77 for n in $(CATALOGS) ; do \
78 l=`basename $$n .mo`; \
79 rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
82 # Create a 'silent rule' for our make check the same way automake does
83 AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
84 am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
85 am__v_CHKTRANS_0 = @echo " CHK translations" ;
88 # 'make check' will make sure the tranlation sources are in line with the compiled source
90 $(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
91 "$(srcdir)" -s "$(top_srcdir)/WPrefs.app/Makefile.am"