1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-04-23 17:11:27 +02:00
Files
wmaker/util/po/Makefile.am
T
Christophe CURIS c72f013136 make: remove unnecessary chmod when creating directories for locales installation
The permissions are already set correctly by the installation script, so it
it not necessary to re-do it afterwards, it makes the code more complex and
error prone, so this patch removes these chmods.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
2015-01-20 21:29:24 +00:00

40 lines
869 B
Makefile

CATALOGS = @UTILMOFILES@
nlsdir = $(NLSDIR)
CLEANFILES = wmgenmenu.pot $(CATALOGS)
EXTRA_DIST = de.po es.po fr.po nl.po pt.po
POTFILES = \
$(top_srcdir)/util/wmgenmenu.c \
$(top_srcdir)/util/wmgenmenu.h
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)
for n in $(CATALOGS) __DuMmY ; do \
if test "$$n" -a "$$n" != "__DuMmY" ; then \
l=`basename $$n .mo`; \
$(mkinstalldirs) $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES; \
$(INSTALL_DATA) -m 644 $$n $(DESTDIR)$(nlsdir)/$$l/LC_MESSAGES/wmgenmenu.mo; \
fi; \
done