1
0
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:
Jonas Fonseca 2006-01-01 22:54:44 +01:00 committed by Jonas Fonseca
parent f34068676e
commit dabe0816fb
2 changed files with 4 additions and 4 deletions

View File

@ -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 -z "$(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 \

View File

@ -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; \