configure: replaced option '--with-nls' by autoconf's '--localedir'
[wmaker-crm.git] / WPrefs.app / po / Makefile.am
blob4fad9aaca7788b701a78bf19a41f8bb616e145b4
1 DOMAIN = WPrefs
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 hr.po hu.po \
8         it.po ja.po ko.po nl.po pt.po ru.po sk.po zh_CN.po zh_TW.po
10 POTFILES  = \
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 \
38 SUFFIXES = .po .mo
40 .po.mo: 
41         $(AM_V_GEN)$(MSGFMT) -c -o $@ $<
44 all-local: $(CATALOGS)
47 if HAVE_XGETTEXT
48 $(DOMAIN).pot: $(POTFILES)
49         $(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
50             --add-comments --keyword=_ --keyword=N_ $(POTFILES)
51         @if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
52             rm -f $(DOMAIN).po; \
53         else \
54             mv -f $(DOMAIN).po $(DOMAIN).pot; \
55         fi
56 endif
59 install-data-local:  $(CATALOGS)
60         $(mkinstalldirs) $(DESTDIR)$(localedir)
61         for n in $(CATALOGS) __DuMmY ; do \
62                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
63                         l=`basename $$n .mo`; \
64                         $(mkinstalldirs) $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
65                         $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
66                 fi; \
67         done
69 # Create a 'silent rule' for our make check the same way automake does
70 AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
71 am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
72 am__v_CHKTRANS_0 = @echo "  CHK     translations" ;
73 am__v_CHKTRANS_1 =
75 # 'make check' will make sure the tranlation sources are in line with the compiled source
76 check-local:
77         $(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
78                 "$(srcdir)" -s "$(top_srcdir)/WPrefs.app/Makefile.am"