mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Fix more problems when $(srcdir) is empty
Thanks to Kalle Olavi Niemitalo and Adam Golebiowski.
This commit is contained in:
parent
f34068676e
commit
dabe0816fb
@ -67,7 +67,7 @@ $(srcdir)$(PACKAGE).pot: $(srcdir)$(POTFILES_ABS_LIST)
|
|||||||
# either <lang> or <lang>.po when calling make. Example: make update-po PO=is
|
# either <lang> or <lang>.po when calling make. Example: make update-po PO=is
|
||||||
|
|
||||||
update-po: Makefile $(srcdir)$(PACKAGE).pot
|
update-po: Makefile $(srcdir)$(PACKAGE).pot
|
||||||
@cd $(srcdir)
|
@test -z "$(srcdir)" || cd $(srcdir)
|
||||||
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
||||||
echo -n "$(lang): "; \
|
echo -n "$(lang): "; \
|
||||||
if $(MSGMERGE) $(srcdir)$(lang).po $(srcdir)$(PACKAGE).pot -o $(lang).new.po; then \
|
if $(MSGMERGE) $(srcdir)$(lang).po $(srcdir)$(PACKAGE).pot -o $(lang).new.po; then \
|
||||||
|
@ -25,9 +25,9 @@ OBJS = \
|
|||||||
textdomain.o
|
textdomain.o
|
||||||
|
|
||||||
|
|
||||||
# $(builddir)/charset.alias: $(srcdir)/config.charset
|
# $(builddir)/charset.alias: $(srcdir)config.charset
|
||||||
$(builddir)/charset.alias: $(srcdir)config.charset
|
$(builddir)/charset.alias: $(srcdir)config.charset
|
||||||
$(SHELL) $(srcdir)/config.charset '$(host)' > $@.new
|
$(SHELL) $(srcdir)config.charset '$(host)' > $@.new
|
||||||
mv $@.new $@
|
mv $@.new $@
|
||||||
|
|
||||||
# FIXME: Building plural.c from plural.y on the fly doesn't work
|
# FIXME: Building plural.c from plural.y on the fly doesn't work
|
||||||
@ -61,7 +61,7 @@ install-local: $(builddir)/charset.alias all
|
|||||||
$(MKINSTALLDIRS) $(DESTDIR)$(localedir); \
|
$(MKINSTALLDIRS) $(DESTDIR)$(localedir); \
|
||||||
test -f $(DESTDIR)$(localedir)/locale.alias \
|
test -f $(DESTDIR)$(localedir)/locale.alias \
|
||||||
&& orig=$(DESTDIR)$(localedir)/locale.alias \
|
&& orig=$(DESTDIR)$(localedir)/locale.alias \
|
||||||
|| orig=$(srcdir)/locale.alias; \
|
|| orig=$(srcdir)locale.alias; \
|
||||||
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
|
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
|
||||||
dest=$(DESTDIR)$(localedir)/locale.alias; \
|
dest=$(DESTDIR)$(localedir)/locale.alias; \
|
||||||
sed -f ref-add.sed $$orig > $$temp; \
|
sed -f ref-add.sed $$orig > $$temp; \
|
||||||
|
Loading…
Reference in New Issue
Block a user