(maybe_bootstrap): Fix shell variable usage. Handle separate-build-dir case.
[bpt/emacs.git] / Makefile.in
index 7640d91..87f1ea6 100644 (file)
@@ -715,8 +715,8 @@ dvi:
 .PHONY: maybe_bootstrap
 
 maybe_bootstrap:
-       @bar="`echo ./lisp/*.elc`"; \
-       if [ \( "$(bar)" = './lisp/*.elc' \) -o \( "$(bar)" = '' \) ]; then \
+       @bar="`echo $(srcdir)/lisp/*.elc`"; \
+       if [ \( "$$bar" = '$(srcdir)/lisp/*.elc' \) -o \( "$bar" = '' \) ]; then \
          echo "Your tree does not include the compiled Lisp files."; \
          echo "You need to do \`make bootstrap' to build Emacs."; \
          echo "Emacs now requires Texinfo version 4.2."; \