mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Convert to new suffix rule and make install-local depend on all-local
This commit is contained in:
parent
6b2d12c1fe
commit
a617d5b140
@ -15,10 +15,7 @@ POTFILES_ABS_LIST = potfiles.list
|
|||||||
SUFFIXES = .po .gmo .mo
|
SUFFIXES = .po .gmo .mo
|
||||||
.SUFFIXES: .gmo .mo .po
|
.SUFFIXES: .gmo .mo .po
|
||||||
|
|
||||||
.po.mo:
|
%.gmo: %.po
|
||||||
$(MSGFMT) -o $@ $<
|
|
||||||
|
|
||||||
.po.gmo:
|
|
||||||
@file=`echo $* | sed 's,.*/,,'`.gmo \
|
@file=`echo $* | sed 's,.*/,,'`.gmo \
|
||||||
&& rm -f $$file && echo -n $*": " \
|
&& rm -f $$file && echo -n $*": " \
|
||||||
&& $(GMSGFMT) --statistics -o $$file $<
|
&& $(GMSGFMT) --statistics -o $$file $<
|
||||||
@ -99,7 +96,7 @@ check-po:
|
|||||||
|
|
||||||
install-local: install-local-$(CONFIG_NLS)
|
install-local: install-local-$(CONFIG_NLS)
|
||||||
install-local-no:
|
install-local-no:
|
||||||
install-local-yes:
|
install-local-yes: all-local
|
||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)
|
||||||
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(CATALOGS))), \
|
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(CATALOGS))), \
|
||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES; \
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES; \
|
||||||
|
Loading…
Reference in New Issue
Block a user