1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-25 01:05:37 +00:00

Clean up and simplify check-po rule.

This commit is contained in:
Laurent MONIN 2005-10-18 11:52:29 +02:00 committed by Laurent MONIN
parent ffceacbd7d
commit 246e321848

View File

@ -90,17 +90,10 @@ update-gmo: Makefile $(GMOFILES)
#
check-po:
@if test -n "$(PO)"; then \
lang=`echo $(PO) | sed 's/\.po//'`; \
catalogs=$$lang.gmo; \
fi; \
if test -z "$$catalogs"; then catalogs='$(GMOFILES)'; fi; \
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
echo -n "$$lang: "; \
$(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $$lang.po; \
done
@$(foreach C,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
echo -n "$(C): "; \
$(GMSGFMT) --check --check-accelerators=~ --verbose --statistics -o /dev/null $(C).po; \
)
### Installation and distribution
#