aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-05-15 23:57:11 +0000
committerJim Blandy1993-05-15 23:57:11 +0000
commit3dbc7e323668ef778206e8488b41e0c1c2df6bab (patch)
tree24ded4d6a60771b45859124198736f992aaf5521
parent3ce7a076e65b7f38c1dc10c6daf4de88d59ce84a (diff)
downloademacs-3dbc7e323668ef778206e8488b41e0c1c2df6bab.tar.gz
emacs-3dbc7e323668ef778206e8488b41e0c1c2df6bab.zip
More changes from David J. Mackenzie.
* Makefile.in (install.sysv, install.xenix, install.aix): Targets removed; autoconf and config.h should specify all these differences. (buildlisppath): Make this path depend on ${srcdir}. (INSTALLFLAGS): Removed. (INSTALL): Include the -c flag. (install): Change the way we invoke install accordingly.
-rw-r--r--Makefile.in140
1 files changed, 13 insertions, 127 deletions
diff --git a/Makefile.in b/Makefile.in
index 883dfc1c762..81937c16a7a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,10 +4,6 @@
4 4
5# make all to compile and build Emacs. 5# make all to compile and build Emacs.
6# make install to install it. 6# make install to install it.
7# make install.sysv to install on system V. Note that on system V you
8# must change mandir to /usr/local/man/man1.
9# make install.xenix to install on Xenix.
10# make install.aix to install on AIX.
11# make TAGS to update tags tables. 7# make TAGS to update tags tables.
12# 8#
13# make clean or make mostlyclean 9# make clean or make mostlyclean
@@ -145,7 +141,7 @@ lisppath=${locallisppath}:${lispdir}
145# entry for the directory containing the installed lisp 141# entry for the directory containing the installed lisp
146# files has been replaced with ../lisp. This should be a 142# files has been replaced with ../lisp. This should be a
147# colon-separated list of directories. 143# colon-separated list of directories.
148buildlisppath=../lisp 144buildlisppath=${srcdir}/lisp
149 145
150@inst_paths@# Where to install the other architecture-independent 146@inst_paths@# Where to install the other architecture-independent
151@inst_paths@# data files distributed with Emacs (like the tutorial, 147@inst_paths@# data files distributed with Emacs (like the tutorial,
@@ -186,8 +182,7 @@ buildlisppath=../lisp
186# ==================== Utility Programs for the Build ==================== 182# ==================== Utility Programs for the Build ====================
187 183
188# Allow the user to specify the install program. 184# Allow the user to specify the install program.
189INSTALL = install 185INSTALL = install -c
190INSTALLFLAGS = -c
191INSTALL_PROGRAM = ${INSTALL} 186INSTALL_PROGRAM = ${INSTALL}
192INSTALL_DATA = ${INSTALL} 187INSTALL_DATA = ${INSTALL}
193 188
@@ -317,6 +312,9 @@ Makefile:
317## don't have to duplicate the list of utilities to install in 312## don't have to duplicate the list of utilities to install in
318## this Makefile as well. 313## this Makefile as well.
319 314
315## On AIX, use tar xBf.
316## On Xenix, use tar xpf.
317
320## We delete each directory in ${COPYDESTS} before we copy into it; 318## We delete each directory in ${COPYDESTS} before we copy into it;
321## that way, we can reinstall over directories that have been put in 319## that way, we can reinstall over directories that have been put in
322## place with their files read-only (perhaps because they are checked 320## place with their files read-only (perhaps because they are checked
@@ -328,8 +326,8 @@ install: all mkdir
328 for dir in ${COPYDIR} ; do \ 326 for dir in ${COPYDIR} ; do \
329 dest=$$1 ; shift ; \ 327 dest=$$1 ; shift ; \
330 [ -d $${dir} ] \ 328 [ -d $${dir} ] \
331 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \ 329 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \
332 && (echo "Copying $${dir}..." ; \ 330 && (echo "Copying $${dir}..." ; \
333 rm -rf $${dest} ; mkdir $${dest} ; \ 331 rm -rf $${dest} ; mkdir $${dest} ; \
334 (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \ 332 (cd $${dir}; tar cf - . )|(cd $${dest}; umask 0; tar xvf - ); \
335 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ 333 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
@@ -341,131 +339,19 @@ install: all mkdir
341 done 339 done
342 -(cd ${srcdir}/info ; \ 340 -(cd ${srcdir}/info ; \
343 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ 341 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \
344 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 ./dir ${infodir}/dir ; \ 342 ${INSTALL_DATA} dir ${infodir}/dir ; \
345 fi ; \ 343 fi ; \
346 if [ "`echo *.info*`" != "*.info*" ]; then \ 344 if [ "`echo *.info*`" != "*.info*" ]; then \
347 for f in *.info* ; do \ 345 for f in *.info* ; do \
348 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $$f ${infodir}/$$f ; \ 346 ${INSTALL_DATA} $$f ${infodir}/$$f ; \
349 done ; \ 347 done ; \
350 fi) 348 fi)
351 cd ${srcdir}/etc; for page in emacs etags ctags ; do \ 349 cd ${srcdir}/etc; for page in emacs etags ctags ; do \
352 ${INSTALL_DATA} ${INSTALLFLAGS} -m 444 $${page}.1 \ 350 ${INSTALL_DATA} $${page}.1 ${mandir}/$${page}${manext} ; \
353 ${mandir}/$${page}${manext} ; \
354 done
355 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \
356 ${bindir}/emacs-${version}
357 -rm -f ${bindir}/emacs
358 ln ${bindir}/emacs-${version} ${bindir}/emacs
359
360## If we let lib-src do its own installation, that means we
361## don't have to duplicate the list of utilities to install in
362## this Makefile as well.
363install.sysv: all mkdir
364 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
365 -set ${COPYDESTS} ; \
366 for dir in ${COPYDIR} ; do \
367 dest=$$1 ; shift ; \
368 [ -d $${dir} ] \
369 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \
370 && (rm -rf $${dest} ; mkdir $${dest} ; \
371 (cd $${dir}; find . -print | cpio -pdum $${dest} ) ; \
372 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
373 rm -rf $${subdir}/RCS ; \
374 rm -rf $${subdir}/CVS ; \
375 rm -f $${subdir}/\#* ; \
376 rm -f $${subdir}/*~ ; \
377 done) ; \
378 done
379 -(cd info ; \
380 if [ ! -f ${infodir}/dir ]; then \
381 cpset ./dir ${infodir} 444 bin bin ; \
382 fi ; \
383 if [ "`echo *.info*`" != "*.info*" ]; then \
384 for f in *.info* ; do \
385 cpset $$f ${infodir} 444 bin bin ; \
386 done ; \
387 fi)
388 -for page in emacs etags ctags ; do \
389 cpset etc/$${page}.1 ${mandir}/$${page}${manext} 444 bin bin ; \
390 done
391 -/bin/rm -f ${bindir}/emacs
392 -cpset src/emacs ${bindir}/emacs-${version} 1755 bin bin
393 -ln ${bindir}/emacs-${version} ${bindir}/emacs
394
395## If we let lib-src do its own installation, that means we
396## don't have to duplicate the list of utilities to install in
397## this Makefile as well.
398install.xenix: all mkdir
399 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
400 -set ${COPYDESTS} ; \
401 for dir in ${COPYDIR} ; do \
402 dest=$$1 ; shift ; \
403 [ -d $${dir} ] \
404 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \
405 && (rm -rf $${dest} ; mkdir $${dest} ; \
406 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xpf - );\
407 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
408 rm -rf $${subdir}/RCS ; \
409 rm -rf $${subdir}/CVS ; \
410 rm -f $${subdir}/\#* ; \
411 rm -f $${subdir}/*~ ; \
412 done) ; \
413 done
414 -(cd info ; \
415 if [ ! -f ${infodir}/dir ]; then \
416 cp ./dir ${infodir} ; \
417 chmod 444 ${infodir}/dir ; \
418 fi ; \
419 if [ "`echo *.info*`" != "*.info*" ]; then \
420 for f in *.info* ; do \
421 cp $$f ${infodir} ; \
422 chmod 444 ${infodir}/$$f ; \
423 done ; \
424 fi)
425 for page in emacs etags ctags ; do \
426 cp etc/$${page}.1 ${mandir}/$${page}${manext} ; \
427 chmod 444 ${mandir}/$${page}${manext} ; \
428 done
429 -mv -f ${bindir}/emacs ${bindir}/emacs.old
430 cp src/emacs ${bindir}/emacs-${version}
431 ln ${bindir}/emacs-${version} ${bindir}/emacs
432 chmod 1755 ${bindir}/emacs
433 -rm -f ${bindir}/emacs.old
434
435## If we let lib-src do its own installation, that means we
436## don't have to duplicate the list of utilities to install in
437## this Makefile as well.
438install.aix: all mkdir
439 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
440 -set ${COPYDESTS} ; \
441 for dir in ${COPYDIR} ; do \
442 dest=$$1 ; shift ; \
443 [ -d $${dir} ] \
444 && [ `(cd $${dir}; /bin/pwd)` != `(cd $${dest}; /bin/pwd)` ] \
445 && (rm -rf $${dest} ; mkdir $${dest} ; \
446 (cd $${dir}; tar cf - . ) | (cd $${dest}; umask 0; tar xBf - );\
447 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
448 rm -rf $${subdir}/RCS ; \
449 rm -rf $${subdir}/CVS ; \
450 rm -f $${subdir}/\#* ; \
451 rm -f $${subdir}/*~ ; \
452 done) ; \
453 done
454 -(cd info ; \
455 if [ ! -f ${infodir}/dir ]; then \
456 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} ./dir ; \
457 fi ; \
458 if [ "`echo *.info*`" != "*.info*" ]; then \
459 for f in *.info* ; do \
460 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${infodir} $$f ; \
461 done ; \
462 fi)
463 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -M 1755 -f ${bindir} src/emacs
464 mv ${bindir}/emacs ${bindir}/emacs-${version}
465 for page in emacs etags ctags ; do \
466 ${INSTALL_DATA} ${INSTALLFLAGS} -M 444 -f ${mandir} etc/$${page}.1 ;\
467 done 351 done
468 -rm -f ${bindir}/emacs 352 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
353 chmod 1755 ${bindir}/emacs-${version}
354 rm -f ${bindir}/emacs
469 ln ${bindir}/emacs-${version} ${bindir}/emacs 355 ln ${bindir}/emacs-${version} ${bindir}/emacs
470 356
471### Build all the directories we're going to install Emacs in. Since 357### Build all the directories we're going to install Emacs in. Since