diff options
| author | Jim Blandy | 1993-05-25 06:18:24 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-25 06:18:24 +0000 |
| commit | 8b14d296745fb3203c0d518256ab0dcb423ddd4d (patch) | |
| tree | f6fc023ce5c201ed853e566fe5954286f4639222 | |
| parent | 2e694846ebc3df12b7f2f99ce1178821a5ce004a (diff) | |
| download | emacs-8b14d296745fb3203c0d518256ab0dcb423ddd4d.tar.gz emacs-8b14d296745fb3203c0d518256ab0dcb423ddd4d.zip | |
* Makefile.in (src/paths.h): Edit the `infodir' variable into this
too, as the value of the PATH_INFO macro.
* Makefile.in (install): Split this into `install' and
`do-install', to give people more control over exactly what gets
done.
(do-install): New target, containing the guts of `install'. Don't
remove and recreate the directories inside the copying loop - do
it all before the copying loop. Pass more flags to the lib-src
make.
(mkdir): Create ${infodir}, ${mandir}, and ${sitelispdir} here, to
avoid errors and warnings.
| -rw-r--r-- | Makefile.in | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in index 547421a29a6..5861999f8ce 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -225,6 +225,7 @@ src/paths.h: Makefile ${srcdir}/src/paths.h.in FRC | |||
| 225 | -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ | 225 | -e 's;\(#.*PATH_LOADSEARCH\).*$$;\1 "'$${lisppath}'";' \ |
| 226 | -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ | 226 | -e 's;\(#.*PATH_DUMPLOADSEARCH\).*$$;\1 "'$${buildlisppath}'";' \ |
| 227 | -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ | 227 | -e 's;\(#.*PATH_EXEC\).*$$;\1 "${archlibdir}";' \ |
| 228 | -e 's;\(#.*PATH_INFO\).*$$;\1 "${infodir}";' \ | ||
| 228 | -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ | 229 | -e 's;\(#.*PATH_DATA\).*$$;\1 "${etcdir}";' \ |
| 229 | -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') | 230 | -e 's;\(#.*PATH_LOCK\).*$$;\1 "${lockdir}/";') |
| 230 | @${srcdir}/move-if-change src/paths.h.tmp src/paths.h | 231 | @${srcdir}/move-if-change src/paths.h.tmp src/paths.h |
| @@ -321,15 +322,21 @@ Makefile: | |||
| 321 | ## place with their files read-only (perhaps because they are checked | 322 | ## place with their files read-only (perhaps because they are checked |
| 322 | ## into RCS). In order to make this safe, we make sure that the | 323 | ## into RCS). In order to make this safe, we make sure that the |
| 323 | ## source exists and is distinct from the destination. | 324 | ## source exists and is distinct from the destination. |
| 324 | install: all mkdir | 325 | install: all do-install |
| 325 | (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) | 326 | |
| 327 | do-install: mkdir | ||
| 328 | (cd lib-src; \ | ||
| 329 | $(MAKE) install ${MFLAGS} prefix=${prefix} \ | ||
| 330 | exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ | ||
| 331 | archlibdir=${archlibdir}) | ||
| 326 | -set ${COPYDESTS} ; \ | 332 | -set ${COPYDESTS} ; \ |
| 333 | rm -rf ${COPYDESTS} ; \ | ||
| 334 | mkdir ${COPYDESTS} ; \ | ||
| 327 | for dir in ${COPYDIR} ; do \ | 335 | for dir in ${COPYDIR} ; do \ |
| 328 | dest=$$1 ; shift ; \ | 336 | dest=$$1 ; shift ; \ |
| 329 | [ -d $${dir} ] \ | 337 | [ -d $${dir} ] \ |
| 330 | && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ | 338 | && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ |
| 331 | && (echo "Copying $${dir}..." ; \ | 339 | && (echo "Copying $${dir}..." ; \ |
| 332 | rm -rf $${dest} ; mkdir $${dest} ; \ | ||
| 333 | (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ | 340 | (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ |
| 334 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ | 341 | for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ |
| 335 | rm -rf $${subdir}/RCS ; \ | 342 | rm -rf $${subdir}/RCS ; \ |
| @@ -358,7 +365,8 @@ install: all mkdir | |||
| 358 | ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path | 365 | ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path |
| 359 | ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. | 366 | ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. |
| 360 | mkdir: FRC | 367 | mkdir: FRC |
| 361 | ./lib-src/make-path ${COPYDESTS} ${lockdir} | 368 | ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ |
| 369 | ${bindir} ${datadir} ${libdir} ${sitelisp} | ||
| 362 | chmod 777 ${COPYDESTS} ${lockdir} | 370 | chmod 777 ${COPYDESTS} ${lockdir} |
| 363 | 371 | ||
| 364 | FRC: | 372 | FRC: |