1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix po files installation with make 3.79.1, related code was simplified.

This commit is contained in:
Laurent MONIN 2005-10-18 11:18:05 +02:00 committed by Laurent MONIN
parent c6f6717a79
commit ffceacbd7d

View File

@ -110,20 +110,10 @@ install-local: install-local-$(CONFIG_NLS)
install-local-no:
install-local-yes:
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
@catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
dir=$(localedir)/$$lang/LC_MESSAGES; \
$(MKINSTALLDIRS) $(DESTDIR)$$dir; \
if test -r $(srcdir)/$$cat; then \
podir=./$(srcdir); \
if test "$$(cd $$podir && pwd)" = "$$(pwd)"; then podir=; fi; \
$(call ncmd,installdata,$$podir$$cat,$(DESTDIR)$$dir/$(PACKAGE).mo); \
else \
echo "Error: Cannot find $$cat"; \
fi; \
done
@$(foreach C,$(basename $(CATALOGS)), \
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(C)/LC_MESSAGES; \
$(call ncmd,installdata,$(C).gmo,$(DESTDIR)$(localedir)/$(C)/LC_MESSAGES/$(PACKAGE).mo); \
)
# Steal the `dist' target so that .po and .gmo files will be properly updated
# then the dependence on `distdir' will take care of copying.