5 CLEANFILES = $(CATALOGS) WindowMaker.pot
8 EXTRA_DIST = be.po bg.po ca.po cs.po da.po de.po el.po es.po et.po fi.po fr.po \
9 gl.po hr.po hu.po it.po ja.po ko.po ms.po nl.po no.po pl.po pt.po \
10 ro.po ru.po sk.po sv.po tr.po zh_CN.po zh_TW.Big5.po ca.po
13 $(top_builddir)/src/appicon.c \
14 $(top_builddir)/src/application.c \
15 $(top_builddir)/src/defaults.c \
16 $(top_builddir)/src/dialog.c \
17 $(top_builddir)/src/dock.c \
18 $(top_builddir)/src/dockedapp.c \
19 $(top_builddir)/src/framewin.c \
20 $(top_builddir)/src/gnome.c \
21 $(top_builddir)/src/icon.c \
22 $(top_builddir)/src/kwm.c \
23 $(top_builddir)/src/main.c \
24 $(top_builddir)/src/menu.c \
25 $(top_builddir)/src/menureader.c \
26 $(top_builddir)/src/misc.c \
27 $(top_builddir)/src/pixmap.c \
28 $(top_builddir)/src/resources.c \
29 $(top_builddir)/src/rootmenu.c \
30 $(top_builddir)/src/screen.c \
31 $(top_builddir)/src/session.c \
32 $(top_builddir)/src/stacking.c \
33 $(top_builddir)/src/startup.c \
34 $(top_builddir)/src/switchmenu.c \
35 $(top_builddir)/src/texture.c \
36 $(top_builddir)/src/wdefaults.c \
37 $(top_builddir)/src/window.c \
38 $(top_builddir)/src/winmenu.c \
39 $(top_builddir)/src/winspector.c \
40 $(top_builddir)/src/wmspec.c \
41 $(top_builddir)/src/workspace.c
49 all-local: $(CATALOGS)
51 WindowMaker.pot: $(POTFILES)
52 xgettext --default-domain=WindowMaker \
53 --add-comments --keyword=_ $(POTFILES)
54 if cmp -s WindowMaker.po WindowMaker.pot; then \
55 rm -f WindowMaker.po; \
57 mv -f WindowMaker.po WindowMaker.pot; \
60 install-data-local: $(CATALOGS)
61 $(mkinstalldirs) $(DESTDIR)$(nlsdir)
62 chmod 755 $(DESTDIR)$(nlsdir)
63 for n in $(CATALOGS) __DuMmY ; do \
64 if test "$$n" -a "$$n" != "__DuMmY" ; then \
65 l=`basename $$n .mo`; \
66 $(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
67 chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
68 chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
69 $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WindowMaker.mo; \