0.62.0 release preparation
[wmaker-crm.git] / po / Makefile.am
blob3c3d8e53cbcd59166b0d7cc4d31e5da7424391de
1 nlsdir      = $(NLSDIR)
3 CATALOGS = @MOFILES@
5 CLEANFILES = $(CATALOGS) WindowMaker.pot
7 EXTRA_DIST = cs.po de.po es.po fr.po gl.po ja.po ko.po nl.po pt.po se.po it.po \
8         no.po ru.po tr.po fi.po hr.po el.po pl.po ro.po zh_TW.Big5.po\
9         zh_CN.po sk.po da.po
11 POTFILES  = \
12         $(top_builddir)/src/appicon.c \
13         $(top_builddir)/src/defaults.c \
14         $(top_builddir)/src/dialog.c \
15         $(top_builddir)/src/dock.c \
16         $(top_builddir)/src/dockedapp.c \
17         $(top_builddir)/src/event.c \
18         $(top_builddir)/src/framewin.c \
19         $(top_builddir)/src/icon.c \
20         $(top_builddir)/src/main.c \
21         $(top_builddir)/src/menu.c \
22         $(top_builddir)/src/misc.c \
23         $(top_builddir)/src/pixmap.c \
24         $(top_builddir)/src/proplist.c \
25         $(top_builddir)/src/resources.c \
26         $(top_builddir)/src/rootmenu.c \
27         $(top_builddir)/src/screen.c \
28         $(top_builddir)/src/session.c \
29         $(top_builddir)/src/stacking.c \
30         $(top_builddir)/src/startup.c \
31         $(top_builddir)/src/switchmenu.c \
32         $(top_builddir)/src/texture.c \
33         $(top_builddir)/src/wdefaults.c \
34         $(top_builddir)/src/window.c \
35         $(top_builddir)/src/winmenu.c \
36         $(top_builddir)/src/winspector.c \
37         $(top_builddir)/src/workspace.c \
38         $(top_builddir)/src/xutil.c 
41 SUFFIXES = .po .mo
43 .po.mo: 
44         msgfmt -o $@ $<
47 WindowMaker.pot: $(POTFILES)
48         xgettext --default-domain=WindowMaker \
49         --add-comments --keyword=_ $(POTFILES)
50         if cmp -s WindowMaker.po WindowMaker.pot; then \
51             rm -f WindowMaker.po; \
52         else \
53             mv -f WindowMaker.po WindowMaker.pot; \
54         fi
56 install-data-local:  $(CATALOGS)
57         $(mkinstalldirs) $(DESTDIR)$(nlsdir)
58         chmod 755 $(DESTDIR)$(nlsdir) 
59         for n in $(CATALOGS) __DuMmY ; do \
60                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
61                         l=`basename $$n .mo`; \
62                         $(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
63                         chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
64                         chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
65                         $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WindowMaker.mo; \
66                 fi; \
67         done