Files
wmaker/util/po/Makefile.am
T

43 lines
986 B
Makefile
Raw Normal View History

2010-01-25 10:55:33 +01:00
CATALOGS = @UTILMOFILES@
nlsdir = $(NLSDIR)
CLEANFILES = wmgenmenu.pot $(CATALOGS)
2012-02-22 03:17:53 -02:00
EXTRA_DIST = de.po es.po fr.po pt.po
2010-01-25 10:55:33 +01:00
POTFILES = \
2010-04-11 21:12:01 +02:00
$(top_srcdir)/util/wmgenmenu.c \
$(top_srcdir)/util/wmgenmenu.h
2010-01-25 10:55:33 +01:00
SUFFIXES = .po .mo
.po.mo:
msgfmt -c -o $@ $<
all-local: $(CATALOGS)
wmgenmenu.pot: $(POTFILES)
xgettext --default-domain=wmgenmenu \
--add-comments --keyword=_ --keyword=N_ $(POTFILES)
if cmp -s wmgenmenu.po wmgenmenu.pot; then \
rm -f wmgenmenu.po; \
else \
mv -f wmgenmenu.po wmgenmenu.pot; \
fi
install-data-local: $(CATALOGS)
$(mkinstalldirs) $(DESTDIR)$(nlsdir)
chmod 755 $(DESTDIR)$(nlsdir)
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
$(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
chmod 755 $(DESTDIR)$(nlsdir)/$$l; \
chmod 755 $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/wmgenmenu.mo; \
fi; \
done