3 CATALOGS = @WINGSMOFILES@
5 CLEANFILES = $(CATALOGS) $(DOMAIN).pot
7 EXTRA_DIST = bg.po ca.po cs.po de.po fr.po fy.po hu.po nl.po sk.po
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
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
75 $(AM_V_GEN)$(MSGFMT) -c -o $@ $<
78 all-local: $(CATALOGS)
84 update-lang: $(DOMAIN).pot
85 $(AM_V_GEN)$(top_srcdir)/script/generate-po-from-template.sh \
86 -n "$(PACKAGE_NAME)" -v "$(PACKAGE_VERSION)" -b "$(PACKAGE_BUGREPORT)" \
87 -t "$(DOMAIN).pot" "$(srcdir)/$(PO).po"
89 $(DOMAIN).pot: $(POTFILES)
90 $(AM_V_GEN)$(XGETTEXT) --default-domain=$(DOMAIN) \
91 --add-comments --keyword=_ --keyword=N_ $(POTFILES)
92 @if cmp -s $(DOMAIN).po $(DOMAIN).pot; then \
95 mv -f $(DOMAIN).po $(DOMAIN).pot; \
100 install-data-local: $(CATALOGS)
101 $(mkinstalldirs) $(DESTDIR)$(localedir)
102 for n in $(CATALOGS) __DuMmY ; do \
103 if test "$$n" -a "$$n" != "__DuMmY" ; then \
104 l=`basename $$n .mo`; \
105 $(mkinstalldirs) $(DESTDIR)$(localedir)/$$l/LC_MESSAGES; \
106 $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
111 for n in $(CATALOGS) ; do \
112 l=`basename $$n .mo`; \
113 rm -f $(DESTDIR)$(localedir)/$$l/LC_MESSAGES/$(DOMAIN).mo; \
116 # Create a 'silent rule' for our make check the same way automake does
117 AM_V_CHKTRANS = $(am__v_CHKTRANS_$(V))
118 am__v_CHKTRANS_ = $(am__v_CHKTRANS_$(AM_DEFAULT_VERBOSITY))
119 am__v_CHKTRANS_0 = @echo " CHK translations" ;
122 # 'make check' will make sure the tranlation sources are in line with the compiled source
124 $(AM_V_CHKTRANS)$(top_srcdir)/script/check-translation-sources.sh \
125 "$(srcdir)" -s "$(top_srcdir)/WINGs/Makefile.am"