- fixed bug with windows shrinking to very small sizes when Unmaximize was
[wmaker-crm.git] / WINGs / po / Makefile.am
blob08e5fc70b078152d67251c420a2aff72334b50ba
1 nlsdir      = $(NLSDIR)
3 CATALOGS = @WINGSMOFILES@
5 CLEANFILES = $(CATALOGS) WINGs.pot
7 EXTRA_DIST = bg.po ca.po cs.po de.po fr.po sk.po
9 POTFILES  = \
10         $(top_builddir)/WINGs/connection.c \
11         $(top_builddir)/WINGs/error.c \
12         $(top_builddir)/WINGs/findfile.c \
13         $(top_builddir)/WINGs/host.c \
14         $(top_builddir)/WINGs/proplist.c \
15         $(top_builddir)/WINGs/userdefaults.c \
16         $(top_builddir)/WINGs/wcolor.c \
17         $(top_builddir)/WINGs/wcolorpanel.c \
18         $(top_builddir)/WINGs/wfilepanel.c \
19         $(top_builddir)/WINGs/wfont.c \
20         $(top_builddir)/WINGs/wfontpanel.c \
21         $(top_builddir)/WINGs/widgets.c \
22         $(top_builddir)/WINGs/wruler.c
24 SUFFIXES = .po .mo
26 .po.mo: 
27         msgfmt -c -o $@ $<
30 all-local: $(CATALOGS)
32 WINGs.pot: $(POTFILES)
33         xgettext --default-domain=WINGs \
34         --add-comments --keyword=_ --keyword=N_ $(POTFILES)
35         if cmp -s WINGs.po WINGs.pot; then \
36             rm -f WINGs.po; \
37         else \
38             mv -f WINGs.po WINGs.pot; \
39         fi
41 install-data-local:  $(CATALOGS)
42         $(mkinstalldirs) $(DESTDIR)$(nlsdir)
43         chmod 755 $(DESTDIR)$(nlsdir) 
44         for n in $(CATALOGS) __DuMmY ; do \
45                 if test "$$n" -a "$$n" != "__DuMmY" ; then \
46                         l=`basename $$n .mo`; \
47                         $(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
48                         chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
49                         chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
50                         $(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/WINGs.mo; \
51                 fi; \
52         done