Updating to version 0.20.2
[wmaker-crm.git] / WPrefs.app / po / Makefile.am
blob2ce570b454d53ad5e3a6ac56166ec4cacf738ac1
1 nlsdir      = @NLSDIR@
3 CATALOGS = @WPMOFILES@
5 CLEANFILES = $(CATALOGS)
7 EXTRA_DIST = pt.po hr.po fr.po ko.po cs.po ja.po
9 POTFILES  = \
10         $(top_builddir)/WPrefs/Configurations.c \
11         $(top_builddir)/WPrefs/Expert.c \
12         $(top_builddir)/WPrefs/Focus.c \
13         $(top_builddir)/WPrefs/KeyboardSettings.c \
14         $(top_builddir)/WPrefs/KeyboardShortcuts.c \
15         $(top_builddir)/WPrefs/Menu.c \
16         $(top_builddir)/WPrefs/MenuGuru.c \
17         $(top_builddir)/WPrefs/MenuPreferences.c \
18         $(top_builddir)/WPrefs/MouseSettings.c \
19         $(top_builddir)/WPrefs/Paths.c \
20         $(top_builddir)/WPrefs/Preferences.c \
21         $(top_builddir)/WPrefs/Text.c \
22         $(top_builddir)/WPrefs/TextureAndColor.c \
23         $(top_builddir)/WPrefs/WPrefs.c \
24         $(top_builddir)/WPrefs/WindowHandling.c \
25         $(top_builddir)/WPrefs/Workspace.c \
26         $(top_builddir)/WPrefs/main.c \
27         $(top_builddir)/WPrefs/xmodifier.c      
29 SUFFIXES = .po .mo
31 .po.mo: 
32         msgfmt -o $@ $<
35 WPrefs.pot: $(POTFILES)
36         xgettext --default-domain=WPrefs \
37         --add-comments --keyword=_ $(POTFILES)
38         if cmp -s WPrefs.po WPrefs.pot; then \
39             rm -f WPrefs.po; \
40         else \
41             mv -f WPrefs.po WPrefs.pot; \
42         fi
44 install-data-local:  $(CATALOGS)
45         $(mkinstalldirs) $(nlsdir) 
46         chmod 755 $(nlsdir) 
47         for n in $(CATALOGS) __DuMmY ; do \
48                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
49                         l=`basename $$n .mo`; \
50                         $(mkinstalldirs) $(nlsdir)/$$l/LC_MESSAGES; \
51                         chmod 755 $(nlsdir)/$$l; \
52                         chmod 755 $(nlsdir)/$$l/LC_MESSAGES; \
53                         $(INSTALL) -m 644 $$n $(nlsdir)/$$l/LC_MESSAGES/WPrefs.mo; \
54                 fi; \
55         done