better wording for an option
[wmaker-crm.git] / po / Makefile.am
blobc0c095ae398c2fb447e9cd5e7d50a7e81b67ac60
1 nlsdir      = $(NLSDIR)
3 CATALOGS = @MOFILES@
5 CLEANFILES = $(CATALOGS) WindowMaker.pot
7 EXTRA_DIST = cs.po de.po es.po et.po fr.po gl.po ja.po ko.po nl.po pt.po \
8     sv.po it.po 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 bg.po hu.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