mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-29 03:17:53 -04:00
Fix po files installation with make 3.79.1, related code was simplified.
This commit is contained in:
parent
c6f6717a79
commit
ffceacbd7d
18
po/Makefile
18
po/Makefile
@ -110,20 +110,10 @@ install-local: install-local-$(CONFIG_NLS)
|
|||||||
install-local-no:
|
install-local-no:
|
||||||
install-local-yes:
|
install-local-yes:
|
||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
||||||
@catalogs='$(CATALOGS)'; \
|
@$(foreach C,$(basename $(CATALOGS)), \
|
||||||
for cat in $$catalogs; do \
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(C)/LC_MESSAGES; \
|
||||||
cat=`basename $$cat`; \
|
$(call ncmd,installdata,$(C).gmo,$(DESTDIR)$(localedir)/$(C)/LC_MESSAGES/$(PACKAGE).mo); \
|
||||||
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
|
|
||||||
|
|
||||||
# Steal the `dist' target so that .po and .gmo files will be properly updated
|
# Steal the `dist' target so that .po and .gmo files will be properly updated
|
||||||
# then the dependence on `distdir' will take care of copying.
|
# then the dependence on `distdir' will take care of copying.
|
||||||
|
Loading…
Reference in New Issue
Block a user