diff options
| author | Jim Blandy | 1993-05-15 23:21:35 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-15 23:21:35 +0000 |
| commit | 3ce7a076e65b7f38c1dc10c6daf4de88d59ce84a (patch) | |
| tree | 39e1e1d4d9e84329db931f7088cd642e6c707134 /src | |
| parent | 26ec91de259ae06812cc20d131369f716b5474eb (diff) | |
| download | emacs-3ce7a076e65b7f38c1dc10c6daf4de88d59ce84a.tar.gz emacs-3ce7a076e65b7f38c1dc10c6daf4de88d59ce84a.zip | |
Install David Mackenzie's patches to make ${srcdir} work.
* Makefile.in (srcdir, VPATH): Get this value from the top-level
Makefile.
(xmakefile): Use ${srcdir} to find the files from which we produce
xmakefile. Edit the values for srcdir and VPATH into xmakefile.
* ymakefile (srcdir, VPATH): New definitions for the Makefile
to edit.
(ALL_CFLAGS): Remove `-Is' and `-Im'; add `-I${srcdir}', and
`-I.'.
(emacs): Adjust dumping commands to deal with a separate source
directory.
(${etc}DOC): Pass `-d ${srcdir}' to make-docfile, to tell it where
to find the source files.
(prefix-args): Find the source code in ${srcdir}.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile.in | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 70cad233587..b6d56977738 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -9,7 +9,8 @@ MAKE = make | |||
| 9 | 9 | ||
| 10 | CC=cc | 10 | CC=cc |
| 11 | CFLAGS=-g | 11 | CFLAGS=-g |
| 12 | srcdir=. | 12 | srcdir=@srcdir@/src |
| 13 | VPATH=@srcdir@/src | ||
| 13 | LN_S=ln -s | 14 | LN_S=ln -s |
| 14 | 15 | ||
| 15 | # ============================= Targets ============================== | 16 | # ============================= Targets ============================== |
| @@ -72,8 +73,8 @@ relock: | |||
| 72 | ### the definition of CPP above may fix it. | 73 | ### the definition of CPP above may fix it. |
| 73 | xmakefile: ymakefile config.h | 74 | xmakefile: ymakefile config.h |
| 74 | -rm -f xmakefile xmakefile.new junk.c junk.cpp | 75 | -rm -f xmakefile xmakefile.new junk.c junk.cpp |
| 75 | cp ymakefile junk.c | 76 | cp ${srcdir}/ymakefile junk.c |
| 76 | ${CPP} ${CFLAGS} junk.c > junk.cpp \ | 77 | ${CPP} -I${srcdir} ${CFLAGS} junk.c > junk.cpp \ |
| 77 | -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ | 78 | -DC_SWITCH_SITE="`echo ${CFLAGS}' ' \ |
| 78 | | sed -e 's/-g /C_DEBUG_SWITCH /' \ | 79 | | sed -e 's/-g /C_DEBUG_SWITCH /' \ |
| 79 | -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`" | 80 | -e 's/-O[0-9]* /C_OPTIMIZE_SWITCH /'`" |
| @@ -81,6 +82,8 @@ xmakefile: ymakefile config.h | |||
| 81 | sed -e 's/^#.*//' \ | 82 | sed -e 's/^#.*//' \ |
| 82 | -e 's/^[ \f\t][ \f\t]*$$//' \ | 83 | -e 's/^[ \f\t][ \f\t]*$$//' \ |
| 83 | -e 's/^ / /' \ | 84 | -e 's/^ / /' \ |
| 85 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | ||
| 86 | -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'|' \ | ||
| 84 | | sed -n -e '/^..*$$/p' \ | 87 | | sed -n -e '/^..*$$/p' \ |
| 85 | > xmakefile.new | 88 | > xmakefile.new |
| 86 | mv -f xmakefile.new xmakefile | 89 | mv -f xmakefile.new xmakefile |