configure: replaced option '--with-nls' by autoconf's '--localedir'
[wmaker-crm.git] / WINGs / po / Makefile.am
blob7c5d6ce3caf954ccf2426d3f5d45ce38bb71c924
1 DOMAIN = WINGs
3 CATALOGS = @WINGSMOFILES@
5 CLEANFILES = $(CATALOGS) $(DOMAIN).pot
7 EXTRA_DIST = bg.po ca.po cs.po de.po fr.po hu.po nl.po sk.po
9 # WUtil files:
10 POTFILES  = \
11         $(top_srcdir)/WINGs/array.c \
12         $(top_srcdir)/WINGs/bagtree.c \
13         $(top_srcdir)/WINGs/data.c \
14         $(top_srcdir)/WINGs/error.c \
15         $(top_srcdir)/WINGs/findfile.c \
16         $(top_srcdir)/WINGs/handlers.c \
17         $(top_srcdir)/WINGs/hashtable.c \
18         $(top_srcdir)/WINGs/memory.c \
19         $(top_srcdir)/WINGs/menuparser.c \
20         $(top_srcdir)/WINGs/menuparser_macros.c \
21         $(top_srcdir)/WINGs/misc.c \
22         $(top_srcdir)/WINGs/notification.c \
23         $(top_srcdir)/WINGs/proplist.c \
24         $(top_srcdir)/WINGs/string.c \
25         $(top_srcdir)/WINGs/tree.c \
26         $(top_srcdir)/WINGs/userdefaults.c \
27         $(top_srcdir)/WINGs/usleep.c \
28         $(top_srcdir)/WINGs/wapplication.c \
29         $(top_srcdir)/WINGs/wutil.c
31 # WINGs files:
32 POTFILES += \
33         $(top_srcdir)/WINGs/configuration.c \
34         $(top_srcdir)/WINGs/dragcommon.c \
35         $(top_srcdir)/WINGs/dragdestination.c \
36         $(top_srcdir)/WINGs/dragsource.c \
37         $(top_srcdir)/WINGs/selection.c \
38         $(top_srcdir)/WINGs/wappresource.c \
39         $(top_srcdir)/WINGs/wballoon.c \
40         $(top_srcdir)/WINGs/wbox.c \
41         $(top_srcdir)/WINGs/wbrowser.c \
42         $(top_srcdir)/WINGs/wbutton.c \
43         $(top_srcdir)/WINGs/wcolor.c \
44         $(top_srcdir)/WINGs/wcolorpanel.c \
45         $(top_srcdir)/WINGs/wcolorwell.c \
46         $(top_srcdir)/WINGs/wevent.c \
47         $(top_srcdir)/WINGs/wfilepanel.c \
48         $(top_srcdir)/WINGs/wframe.c \
49         $(top_srcdir)/WINGs/wfont.c \
50         $(top_srcdir)/WINGs/wfontpanel.c \
51         $(top_srcdir)/WINGs/widgets.c \
52         $(top_srcdir)/WINGs/winputmethod.c \
53         $(top_srcdir)/WINGs/wlabel.c \
54         $(top_srcdir)/WINGs/wlist.c \
55         $(top_srcdir)/WINGs/wmenuitem.c \
56         $(top_srcdir)/WINGs/wmisc.c \
57         $(top_srcdir)/WINGs/wpanel.c \
58         $(top_srcdir)/WINGs/wpixmap.c \
59         $(top_srcdir)/WINGs/wpopupbutton.c \
60         $(top_srcdir)/WINGs/wprogressindicator.c \
61         $(top_srcdir)/WINGs/wruler.c \
62         $(top_srcdir)/WINGs/wscroller.c \
63         $(top_srcdir)/WINGs/wscrollview.c \
64         $(top_srcdir)/WINGs/wslider.c \
65         $(top_srcdir)/WINGs/wsplitview.c \
66         $(top_srcdir)/WINGs/wtabview.c \
67         $(top_srcdir)/WINGs/wtext.c \
68         $(top_srcdir)/WINGs/wtextfield.c \
69         $(top_srcdir)/WINGs/wview.c \
70         $(top_srcdir)/WINGs/wwindow.c
72 SUFFIXES = .po .mo
74 .po.mo: 
75         $(AM_V_GEN)$(MSGFMT) -c -o $@ $<
78 all-local: $(CATALOGS)
81 if HAVE_XGETTEXT
82 $(DOMAIN).pot: $(POTFILES)
83         $(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
84             --add-comments --keyword=_ --keyword=N_ $(POTFILES)
85         @if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
86             rm -f $(DOMAIN).po; \
87         else \
88             mv -f $(DOMAIN).po $(DOMAIN).pot; \
89         fi
90 endif
93 install-data-local:  $(CATALOGS)
94         $(mkinstalldirs) $(DESTDIR)$(localedir)
95         for n in $(CATALOGS) __DuMmY ; do \
96                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
97                         l=`basename $$n .mo`; \
98                         $(mkinstalldirs) $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
99                         $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
100                 fi; \
101         done
103 # Create a 'silent rule' for our make check the same way automake does
104 AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
105 am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
106 am__v_CHKTRANS_0 = @echo "  CHK     translations" ;
107 am__v_CHKTRANS_1 =
109 # 'make check' will make sure the tranlation sources are in line with the compiled source
110 check-local:
111         $(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
112                 "$(srcdir)" -s "$(top_srcdir)/WINGs/Makefile.am"