(setwins): abstract out the command to find subdirectories
[bpt/emacs.git] / msdos / sed1.inp
dissimilarity index 66%
index cbe233d..4a26597 100644 (file)
@@ -1,25 +1,39 @@
-# ----------------------------------------------------------------------\r
-# Configuration script for makefile.in-in\r
-# ----------------------------------------------------------------------\r
-s/^#.*//\r
-s/^[ \f\t][ \f\t]*$//\r
-s/^ /  /\r
-/^obj=/s!$! dosfns.o msdos.o!\r
-/window.elc/s!window.elc!window.elc ${lispdir}dos-fns.elc!\r
-s/\.h\.in/.h-in/\r
-s!^.-if.*inc-vers.*$!#!\r
-s!^    \./temacs!      go32 temacs!\r
-s!/bin/sh!command.com!\r
-/^MAKE *=/s/^/# /\r
-/^SHELL *=/s/^/# /\r
-/^srcdir *=/s/@[^@\n]+@/./\r
-/^VPATH *=/s/@[^@\n]+@/./\r
-/^CC *=/s/@[^@\n]+@/gcc/\r
-/^CPP *=/s/@[^@\n]+@/gcc -e/\r
-/^CFLAGS *=/s/@[^@\n]+@/-g/\r
-/^LN_S *=/s/@[^@\n]+@/ln -s/\r
-/DEBUG_MOLE *=/s/=.*$/=/\r
-/^.\${libsrc}make-doc/s!>.*$!!\r
-/^.\${libsrc}make-docfile/s!make-docfile!make-docfile -o ../etc/DOC!\r
-/^.\${libsrc}make-docfile/s/\$/go32 $/\r
-/^[\f   ]*$/d\r
+# -sed1.inp-------------------------------------------------------------
+# Configuration script for src/makefile
+# ----------------------------------------------------------------------
+#
+# In case src/Makefile needs to rebuild `make-doc.exe' (might happen under
+# Windows 95), make sure it gets built with commands that DOS
+# understands (one command per line).
+s/^#.*//
+s/^[ \f\t][ \f\t]*$//
+s/^ /  /
+s/\.h\.in/.h-in/
+s!^    \./temacs!      go32 temacs!
+s!/bin/sh!command.com!
+/^MAKE *=/s/^/# /
+/^SHELL *=/s/^/# /
+/^srcdir *=/s/@[^@\n]*@/./
+/^VPATH *=/s/@[^@\n]*@/./
+/^CC *=/s/@[^@\n]*@/gcc/
+/^CPP *=/s/@[^@\n]*@/gcc -e/
+/^CFLAGS *=/s/@[^@\n]*@/-O2 -g/
+/^LN_S *=/s/@[^@\n]*@/ln -s/
+/^M_FILE *=/s!@[^@\n]*@!m/intel386.h!
+/^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-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//
+/^temacs:/s/stamp-oldxmenu//
+/^     #/d