# -sed1.inp-------------------------------------------------------------
# Configuration script for src/makefile
# ----------------------------------------------------------------------
+#
+# In case src/Makefile needs to rebuild `make-doc.exe' (might happen under
+# Win95), make sure it gets built with commands that DOS
+# understands (one command per line).
s/^#.*//
s/^[ \f\t][ \f\t]*$//
s/^ / /
/^S_FILE *=/s!@[^@\n]*@!s/msdos.h!
/^@SET_MAKE@$/s/@SET_MAKE@//
/^.\${libsrc}make-docfile.*>/s!make-docfile!make-doc.exe -o ../etc/DOC!
-/^.\${libsrc}make-docfile.*-a/s!make-docfile!make-doc.exe!
/^.\${libsrc}make-doc/s!>.*$!!
+/^\${libsrc}make-docfile:/c\
+${libsrc}make-doc.exe:\
+ cd ..\
+ cd lib-src\
+ $(MAKE) ${MFLAGS} make-docfile -W make-docfile.c\
+ cd ..\
+ cd src
+/^ cd \${libsrc}; \${MAKE} \${MFLAGS} make-docfile/d
+/\${libsrc}make-docfile/s/-docfile[ ]/-doc.exe /
/^[\f ]*$/d
/^temacs:/s/prefix-args//
/^ #/d