mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
Fix more problems when $(srcdir) is empty
Thanks to Kalle Olavi Niemitalo and Adam Golebiowski.
This commit is contained in:
parent
5e4e13286c
commit
9c50072c97
@ -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
|
||||
|
||||
update-po: Makefile $(srcdir)$(PACKAGE).pot
|
||||
@cd $(srcdir)
|
||||
@test -n "$(srcdir)" && cd $(srcdir)
|
||||
@$(foreach lang,$(basename $(if $(strip $(PO)),$(PO),$(GMOFILES))), \
|
||||
echo -n "$(lang): "; \
|
||||
if $(MSGMERGE) $(srcdir)$(lang).po $(srcdir)$(PACKAGE).pot -o $(lang).new.po; then \
|
||||
|
@ -25,9 +25,9 @@ OBJS = \
|
||||
textdomain.o
|
||||
|
||||
|
||||
# $(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 $@
|
||||
|
||||
# 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); \
|
||||
test -f $(DESTDIR)$(localedir)/locale.alias \
|
||||
&& orig=$(DESTDIR)$(localedir)/locale.alias \
|
||||
|| orig=$(srcdir)/locale.alias; \
|
||||
|| orig=$(srcdir)locale.alias; \
|
||||
temp=$(DESTDIR)$(localedir)/t-locale.alias; \
|
||||
dest=$(DESTDIR)$(localedir)/locale.alias; \
|
||||
sed -f ref-add.sed $$orig > $$temp; \
|
||||
|
Loading…
Reference in New Issue
Block a user