diff options
| author | Jim Blandy | 1993-05-15 22:57:27 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-15 22:57:27 +0000 |
| commit | ddb7302160a5d5e2dfb5b71f5b1420664c826e29 (patch) | |
| tree | 025bcb10f76acd630946b4b808edbe20ef28ff05 | |
| parent | c38a040d4a3a1bc794a361d67e9aefc10c68cff4 (diff) | |
| download | emacs-ddb7302160a5d5e2dfb5b71f5b1420664c826e29.tar.gz emacs-ddb7302160a5d5e2dfb5b71f5b1420664c826e29.zip | |
Install ${srcdir} changes from DJM.
* Makefile.in (SUBDIR_MAKEFILES): Add oldXMenu/Makefile to this
list.
(COPYDIR, COPYDESTS): Install files from both the etc directory in
the source tree and the etc directory in the object tree.
(${SUBDIR}): Pass the prefix variable down to submakes.
(everywhere): Use `sed', not `/bin/sed'. Not all systems have sed
in /bin.
(lib-src/Makefile, src/Makefile, oldXMenu/Makefile): Edit in
values for srcdir and VPATH.
(install): Add `v' flag to tar command. Make sure that `dir'
exists in ${srcdir}/info before copying it. Remember that the man
pages come from the source tree, not the object tree.
* configure.in: Remove remarks saying that the --srcdir option
doesn't work.
Create the etc directory in the object tree.
Recognize configuration names of the form *-sun-solaris*.
Recognize sunos5 and solaris as operating system names.
| -rw-r--r-- | Makefile.in | 45 | ||||
| -rwxr-xr-x | configure1.in | 11 |
2 files changed, 35 insertions, 21 deletions
diff --git a/Makefile.in b/Makefile.in index 8270abf2e06..883dfc1c762 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -202,15 +202,15 @@ MFLAGS = | |||
| 202 | SUBDIR = lib-src src | 202 | SUBDIR = lib-src src |
| 203 | 203 | ||
| 204 | # The makefiles of the directories in $SUBDIR. | 204 | # The makefiles of the directories in $SUBDIR. |
| 205 | SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile | 205 | SUBDIR_MAKEFILES = lib-src/Makefile src/Makefile oldXMenu/Makefile |
| 206 | 206 | ||
| 207 | # Subdirectories to install, and where they'll go. | 207 | # Subdirectories to install, and where they'll go. |
| 208 | # lib-src's makefile knows how to install it, so we don't do that here. | 208 | # lib-src's makefile knows how to install it, so we don't do that here. |
| 209 | # When installing the info files, we need to do special things to | 209 | # When installing the info files, we need to do special things to |
| 210 | # avoid nuking an existing dir file, so we don't do that here; | 210 | # avoid nuking an existing dir file, so we don't do that here; |
| 211 | # instead, we have written out explicit code in the `install' targets. | 211 | # instead, we have written out explicit code in the `install' targets. |
| 212 | COPYDIR = etc ${srcdir}/lisp ${srcdir}/external-lisp | 212 | COPYDIR = etc ${srcdir}/etc ${srcdir}/lisp ${srcdir}/external-lisp |
| 213 | COPYDESTS = ${etcdir} ${lispdir} ${externallispdir} | 213 | COPYDESTS = ${etcdir} ${etcdir} ${lispdir} ${externallispdir} |
| 214 | 214 | ||
| 215 | all: src/paths.h ${SUBDIR} | 215 | all: src/paths.h ${SUBDIR} |
| 216 | 216 | ||
| @@ -240,7 +240,7 @@ src: lib-src | |||
| 240 | 240 | ||
| 241 | ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC | 241 | ${SUBDIR}: ${SUBDIR_MAKEFILES} FRC |
| 242 | cd $@; $(MAKE) all ${MFLAGS} \ | 242 | cd $@; $(MAKE) all ${MFLAGS} \ |
| 243 | CC='${CC}' CFLAGS='${CFLAGS}' \ | 243 | CC='${CC}' CFLAGS='${CFLAGS}' prefix='${prefix}' \ |
| 244 | srcdir='${srcdir}/$@' libdir='${libdir}' | 244 | srcdir='${srcdir}/$@' libdir='${libdir}' |
| 245 | 245 | ||
| 246 | ## We build the makefiles for the subdirectories here so that we can | 246 | ## We build the makefiles for the subdirectories here so that we can |
| @@ -255,13 +255,14 @@ lib-src/Makefile: ${srcdir}/lib-src/Makefile.in Makefile | |||
| 255 | echo "# running \`make lib-src/Makefile' at the top of the" ; \ | 255 | echo "# running \`make lib-src/Makefile' at the top of the" ; \ |
| 256 | echo "# Emacs build tree instead, or editing" ; \ | 256 | echo "# Emacs build tree instead, or editing" ; \ |
| 257 | echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ | 257 | echo "# \`${srcdir}/lib-src/Makefile.in' itself." ; \ |
| 258 | /bin/sed < ${srcdir}/lib-src/Makefile.in \ | 258 | sed < ${srcdir}/lib-src/Makefile.in \ |
| 259 | -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ | 259 | -e 's|^\(version *=\).*$$|\1'"${version}"'|' \ |
| 260 | -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ | 260 | -e 's|^\(configname *=\).*$$|\1'"${configuration}"'|' \ |
| 261 | -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ | 261 | -e 's|^\(prefix *=\).*$$|\1'"${prefix}"'|' \ |
| 262 | -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ | 262 | -e 's|^\(exec_prefix *=\).*$$|\1'"${exec_prefix}"'|' \ |
| 263 | -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ | 263 | -e 's|^\(libdir *=\).*$$|\1'"${libdir}"'|' \ |
| 264 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | 264 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/lib-src|' \ |
| 265 | -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/lib-src|' \ | ||
| 265 | -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ | 266 | -e 's|^\(archlibdir *=\).*$$|\1'"${archlibdir}"'|' \ |
| 266 | -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ | 267 | -e 's|^\(ALLOCA *=\).*$$|\1'"${ALLOCA}"'|' \ |
| 267 | -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | 268 | -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
| @@ -280,8 +281,9 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile | |||
| 280 | echo "# running \`make src/Makefile' at the top of the" ; \ | 281 | echo "# running \`make src/Makefile' at the top of the" ; \ |
| 281 | echo "# Emacs build tree instead, or editing" ; \ | 282 | echo "# Emacs build tree instead, or editing" ; \ |
| 282 | echo "# \`${srcdir}/src/Makefile.in' itself." ; \ | 283 | echo "# \`${srcdir}/src/Makefile.in' itself." ; \ |
| 283 | /bin/sed < ${srcdir}/src/Makefile.in \ | 284 | sed < ${srcdir}/src/Makefile.in \ |
| 284 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'|' \ | 285 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/src|' \ |
| 286 | -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/src|' \ | ||
| 285 | -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | 287 | -e 's|^CC *=.*$$|CC='"${CC}"'|' \ |
| 286 | -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \ | 288 | -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \ |
| 287 | -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ | 289 | -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ |
| @@ -290,10 +292,21 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile | |||
| 290 | chmod -w src/Makefile | 292 | chmod -w src/Makefile |
| 291 | 293 | ||
| 292 | oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile Makefile | 294 | oldXMenu/Makefile: ${srcdir}/oldXMenu/Makefile Makefile |
| 293 | echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile.in'." | ||
| 294 | rm -f oldXMenu/Makefile.tmp | 295 | rm -f oldXMenu/Makefile.tmp |
| 295 | cp "${srcdir}"/oldXMenu/Makefile oldXMenu/Makefile | 296 | @echo "Producing \`oldXMenu/Makefile' from \`${srcdir}/oldXMenu/Makefile'." |
| 296 | 297 | @(echo "# This file is generated from \`${srcdir}/oldXMenu/Makefile'." ; \ | |
| 298 | echo "# If you are thinking about editing it, you should seriously consider" ; \ | ||
| 299 | echo "# running \`make oldXMenu/Makefile' at the top of the" ; \ | ||
| 300 | echo "# Emacs build tree instead, or editing" ; \ | ||
| 301 | echo "# \`${srcdir}/oldXMenu/Makefile.in' itself." ; \ | ||
| 302 | sed < ${srcdir}/oldXMenu/Makefile \ | ||
| 303 | -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ | ||
| 304 | -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/oldXMenu|' \ | ||
| 305 | -e 's|^CC *=.*$$|CC='"${CC}"'|' \ | ||
| 306 | -e 's|^DEFS *=.*$$|DEFS='"${DEFS}"'|' \ | ||
| 307 | -e '/^# DIST: /d') > oldXMenu/Makefile.tmp | ||
| 308 | @${srcdir}/move-if-change oldXMenu/Makefile.tmp oldXMenu/Makefile | ||
| 309 | chmod -w oldXMenu/Makefile | ||
| 297 | 310 | ||
| 298 | Makefile: | 311 | Makefile: |
| 299 | ./config.status | 312 | ./config.status |
| @@ -318,7 +331,7 @@ install: all mkdir | |||
| 318 | && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ | 331 | && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
| 319 | && (echo "Copying $${dir}..." ; \ | 332 | && (echo "Copying $${dir}..." ; \ |
| 320 | rm -rf $${dest} ; mkdir $${dest} ; \ | 333 | rm -rf $${dest} ; mkdir $${dest} ; \ |
| 321 | (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xf - ); \ | 334 | (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ |
| 322 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | 335 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
| 323 | rm -rf $${subdir}/RCS ; \ | 336 | rm -rf $${subdir}/RCS ; \ |
| 324 | rm -rf $${subdir}/CVS ; \ | 337 | rm -rf $${subdir}/CVS ; \ |
| @@ -326,8 +339,8 @@ install: all mkdir | |||
| 326 | rm -f $${subdir}/*~ ; \ | 339 | rm -f $${subdir}/*~ ; \ |
| 327 | done) ; \ | 340 | done) ; \ |
| 328 | done | 341 | done |
| 329 | -(cd info ; \ | 342 | -(cd ${srcdir}/info ; \ |
| 330 | if [ ! -f ${infodir}/dir ]; then \ | 343 | if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ |
| 331 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ | 344 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ |
| 332 | fi ; \ | 345 | fi ; \ |
| 333 | if [ "`echo *.info*`" != "*.info*" ]; then \ | 346 | if [ "`echo *.info*`" != "*.info*" ]; then \ |
| @@ -335,8 +348,8 @@ install: all mkdir | |||
| 335 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ | 348 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ |
| 336 | done ; \ | 349 | done ; \ |
| 337 | fi) | 350 | fi) |
| 338 | for page in emacs etags ctags ; do \ | 351 | cd ${srcdir}/etc; for page in emacs etags ctags ; do \ |
| 339 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 etc/$${page}.1 \ | 352 | ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $${page}.1 \ |
| 340 | ${mandir}/$${page}${manext} ; \ | 353 | ${mandir}/$${page}${manext} ; \ |
| 341 | done | 354 | done |
| 342 | ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ | 355 | ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ |
diff --git a/configure1.in b/configure1.in index eaf3aec1326..e4b93d02d1c 100755 --- a/configure1.in +++ b/configure1.in | |||
| @@ -102,7 +102,7 @@ The --run-in-place option sets up default values for the path | |||
| 102 | 102 | ||
| 103 | The --srcdir=DIR option specifies that the configuration and build | 103 | The --srcdir=DIR option specifies that the configuration and build |
| 104 | processes should look for the Emacs source code in DIR, when | 104 | processes should look for the Emacs source code in DIR, when |
| 105 | DIR is not the current directory. This option doesn't work yet. | 105 | DIR is not the current directory. |
| 106 | 106 | ||
| 107 | If successful, ${progname} leaves its status in config.status. If | 107 | If successful, ${progname} leaves its status in config.status. If |
| 108 | unsuccessful after disturbing the status quo, it removes config.status." | 108 | unsuccessful after disturbing the status quo, it removes config.status." |
| @@ -196,8 +196,6 @@ Set it to either \`yes' or \`no'." | |||
| 196 | shift; val="$1" | 196 | shift; val="$1" |
| 197 | fi | 197 | fi |
| 198 | srcdir="${val}" | 198 | srcdir="${val}" |
| 199 | |||
| 200 | echo "${progname}: Beware - the \`--srcdir' option doesn't work yet." >&2 | ||
| 201 | ;; | 199 | ;; |
| 202 | 200 | ||
| 203 | ## Has the user tried to tell us where the X files are? | 201 | ## Has the user tried to tell us where the X files are? |
| @@ -320,7 +318,9 @@ fi | |||
| 320 | if [ ! -d ./oldXMenu ]; then | 318 | if [ ! -d ./oldXMenu ]; then |
| 321 | mkdir ./oldXMenu | 319 | mkdir ./oldXMenu |
| 322 | fi | 320 | fi |
| 323 | 321 | if [ ! -d ./etc ]; then | |
| 322 | mkdir ./etc | ||
| 323 | fi | ||
| 324 | 324 | ||
| 325 | #### Given the configuration name, set machfile and opsysfile to the | 325 | #### Given the configuration name, set machfile and opsysfile to the |
| 326 | #### names of the m/*.h and s/*.h files we should use. | 326 | #### names of the m/*.h and s/*.h files we should use. |
| @@ -678,7 +678,7 @@ case "${configuration}" in | |||
| 678 | ;; | 678 | ;; |
| 679 | 679 | ||
| 680 | ## Suns | 680 | ## Suns |
| 681 | *-sun-sunos* | *-sun-bsd* ) | 681 | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* ) |
| 682 | case "${configuration}" in | 682 | case "${configuration}" in |
| 683 | m68*-sunos1* ) machine=sun1 ;; | 683 | m68*-sunos1* ) machine=sun1 ;; |
| 684 | m68*-sunos2* ) machine=sun2 ;; | 684 | m68*-sunos2* ) machine=sun2 ;; |
| @@ -690,6 +690,7 @@ case "${configuration}" in | |||
| 690 | case "${configuration}" in | 690 | case "${configuration}" in |
| 691 | *-sunos4.0* ) opsys=sunos4-0 ;; | 691 | *-sunos4.0* ) opsys=sunos4-0 ;; |
| 692 | *-sunos4* | *-sunos ) opsys=sunos4-1 ;; | 692 | *-sunos4* | *-sunos ) opsys=sunos4-1 ;; |
| 693 | *-sunos5* | *-solaris* ) opsys=sol2 ;; | ||
| 693 | * ) opsys=bsd4-2 ;; | 694 | * ) opsys=bsd4-2 ;; |
| 694 | esac | 695 | esac |
| 695 | ;; | 696 | ;; |