-# Makefile for the GNU Emacs Lisp Reference Manual.
+### @configure_input@
# Copyright (C) 1990-1996, 1998-2013 Free Software Foundation, Inc.
SHELL = /bin/sh
+# NB If you add any more configure variables,
+# update the sed rules in the dist target below.
+
# Standard configure variables.
srcdir = @srcdir@
-e 's/^\(buildinfodir *=\).*/\1 ./' \
-e 's/^\(clean:.*\)/\1 infoclean/' \
-e "s/@ver[s]ion@/${version}/" \
+ -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}
rm -rf emacs-lispref-${version}