po/it/Makefile: minor fixes

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
This commit is contained in:
Davide Madrisan 2012-11-25 16:39:12 +01:00
parent 288d828aaa
commit 68c1f2b47a

View File

@ -51,16 +51,16 @@ merge-pot-files: $(patsubst %,$(srcdir)/po/%,$(pck_catalogs_tmpl))
/usr/bin/msguniq --use-first --no-location --no-wrap \ /usr/bin/msguniq --use-first --no-location --no-wrap \
$(srcdir)/po/$(PACKAGE)-all.pot \ $(srcdir)/po/$(PACKAGE)-all.pot \
-o $(srcdir)/po/$(PACKAGE).pot && \ -o $(srcdir)/po/$(PACKAGE).pot && \
echo "... $(PACKAGE)-all.pot [PASSED]" || \ echo "... $(PACKAGE)-all.pot [DONE]" || \
{ echo ".. $(PACKAGE)-all.pot [FAILED]"; exit 1; } { echo ".. $(PACKAGE)-all.pot [FAILED]"; exit 1; }
locales: merge-pot-files locales: merge-pot-files
@echo "Generating global locale...";\ @echo "Generating global locale...";\
/usr/bin/msgmerge --update --no-fuzzy-matching --indent \ /usr/bin/msgmerge --update --no-fuzzy-matching --indent \
$(PACKAGE).po \ $(PACKAGE).po \
$(srcdir)/po/$(PACKAGE).pot;\ $(srcdir)/po/$(PACKAGE).pot && \
echo "... $(PACKAGE)-all.po [DONE]" echo "... $(PACKAGE).po [DONE]" || \
{ echo ".. $(PACKAGE).po [FAILED]"; exit 1; }
install: locales install: locales
@destdir="$(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES";\ @destdir="$(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES";\
@ -68,12 +68,9 @@ install: locales
$(INSTALL_DATA) $(PACKAGE).mo $$destdir/$(PACKAGE).mo $(INSTALL_DATA) $(PACKAGE).mo $$destdir/$(PACKAGE).mo
uninstall: uninstall:
@for f in $(pck_catalogs:.po=); do\ rm -f $(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES/$(PACKAGE).mo
echo "rm -f $(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES/$${f}.mo";\
rm -f $(DESTDIR)$(localedir)/$(LANG)/LC_MESSAGES/$${f}.mo;\
done
clean: clean:
rm -f $(pck_catalogs:.po=.mo) rm -f $(PACKAGE).mo
rm -f $(srcdir)/po/$(PACKAGE)-all.po rm -f $(srcdir)/po/*.pot
rm -f *.po~ rm -f *.po~