Use a @configure_input@ comment at the start of generated Makefiles
[bpt/emacs.git] / doc / lispref / Makefile.in
index 34c2321..8e6d034 100644 (file)
@@ -1,4 +1,4 @@
-# Makefile for the GNU Emacs Lisp Reference Manual.
+### @configure_input@
 
 # Copyright (C) 1990-1996, 1998-2013 Free Software Foundation, Inc.
 
@@ -169,9 +169,10 @@ dist:
          -e 's/@MAKE[I]NFO@/makeinfo/' -e 's/@MK[D]IR_P@/mkdir -p/' \
          -e 's/@IN[F]O_EXT@/.info/' -e 's/@IN[F]O_OPTS@//' \
          ${srcdir}/Makefile.in > emacs-lispref-${version}/Makefile
+       @if grep '@[a-zA-Z_]*@' emacs-lispref-${version}/Makefile; then \
+         echo "Unexpanded configure variables in Makefile?" 1>&2; exit 1; \
+       fi
        tar -cf emacs-lispref-${version}.tar emacs-lispref-${version}
-       @grep '@[A-Z]*@' emacs-lispref-${version}/Makefile && \
-         echo "WARNING: Unexpanded configure variables in Makefile?" || true
        rm -rf emacs-lispref-${version}
 
 ### Makefile ends here