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 tr.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/HotCornerShortcuts.c \
18 $(top_srcdir)/WPrefs.app/Icons.c \
19 $(top_srcdir)/WPrefs.app/KeyboardShortcuts.c \
20 $(top_srcdir)/WPrefs.app/Menu.c \
21 $(top_srcdir)/WPrefs.app/MenuPreferences.c \
22 $(top_srcdir)/WPrefs.app/MouseSettings.c \
23 $(top_srcdir)/WPrefs.app/Paths.c \
24 $(top_srcdir)/WPrefs.app/Preferences.c \
25 $(top_srcdir)/WPrefs.app/TexturePanel.c \
26 $(top_srcdir)/WPrefs.app/WPrefs.c \
27 $(top_srcdir)/WPrefs.app/WindowHandling.c \
28 $(top_srcdir)/WPrefs.app/Workspace.c \
29 $(top_srcdir)/WPrefs.app/double.c \
30 $(top_srcdir)/WPrefs.app/editmenu.c \
31 $(top_srcdir)/WPrefs.app/main.c \
32 $(top_srcdir)/WPrefs.app/xmodifier.c
34 # not_yet_fully_implemented
35 # $(top_srcdir)/WPrefs.app/KeyboardSettings.c \
36 # $(top_srcdir)/WPrefs.app/Themes.c \
42 $(AM_V_GEN)$(MSGFMT) -c -o $@ $<
45 all-local: $(CATALOGS)
51 update-lang: $(DOMAIN).pot
52 $(AM_V_GEN)$(top_srcdir)/script/generate-po-from-template.sh \
53 -n "$(PACKAGE_NAME)" -v "$(PACKAGE_VERSION)" -b "$(PACKAGE_BUGREPORT)" \
54 -t "$(DOMAIN).pot" "$(srcdir)/$(PO).po"
56 $(DOMAIN).pot: $(POTFILES)
57 $(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
58 --add-comments --keyword=_ --keyword=N_ $(POTFILES)
59 @if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
62 mv -f $(DOMAIN).po $(DOMAIN).pot; \
67 install-data-local: $(CATALOGS)
68 $(mkinstalldirs) $(DESTDIR)$(localedir)
69 for n in $(CATALOGS) __DuMmY ; do \
70 if test "$$n" -a "$$n" != "__DuMmY" ; then \
71 l=`basename $$n .mo`; \
72 $(mkinstalldirs) $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
73 $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
78 for n in $(CATALOGS) ; do \
79 l=`basename $$n .mo`; \
80 rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
83 # Create a 'silent rule' for our make check the same way automake does
84 AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
85 am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
86 am__v_CHKTRANS_0 = @echo " CHK translations" ;
89 # 'make check' will make sure the tranlation sources are in line with the compiled source
91 $(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
92 "$(srcdir)" -s "$(top_srcdir)/WPrefs.app/Makefile.am"