comparison Makefile.in @ 2817:d28c54ba888e

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.
author Jim Blandy <jimb@redhat.com>
date Sat, 15 May 1993 23:57:11 +0000
parents cea361c342f4
children 74380115ed5e
comparison
equal deleted inserted replaced
2816:7c0be881a633 2817:d28c54ba888e
2 # DIST: make most of the changes to this file you might want, so try 2 # DIST: make most of the changes to this file you might want, so try
3 # DIST: that first. 3 # DIST: that first.
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
14 # Delete all files from the current directory that are normally 10 # Delete all files from the current directory that are normally
15 # created by building the program. Don't delete the files that 11 # created by building the program. Don't delete the files that
143 # before they've been installed in their final location. 139 # before they've been installed in their final location.
144 # It's usually identical to lisppath, except that the 140 # It's usually identical to lisppath, except that the
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.
148 buildlisppath=../lisp 144 buildlisppath=${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,
152 @inst_paths@# the cookie recipes and the Zippy database). This path 148 @inst_paths@# the cookie recipes and the Zippy database). This path
153 @inst_paths@# usually contains the Emacs version number, so the data 149 @inst_paths@# usually contains the Emacs version number, so the data
184 @rip_paths@infodir=${srcdir}/info 180 @rip_paths@infodir=${srcdir}/info
185 181
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.
189 INSTALL = install 185 INSTALL = install -c
190 INSTALLFLAGS = -c
191 INSTALL_PROGRAM = ${INSTALL} 186 INSTALL_PROGRAM = ${INSTALL}
192 INSTALL_DATA = ${INSTALL} 187 INSTALL_DATA = ${INSTALL}
193 188
194 # ============================= Targets ============================== 189 # ============================= Targets ==============================
195 190
315 310
316 ## If we let lib-src do its own installation, that means we 311 ## If we let lib-src do its own installation, that means we
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
323 ## into RCS). In order to make this safe, we make sure that the 321 ## into RCS). In order to make this safe, we make sure that the
324 ## source exists and is distinct from the destination. 322 ## source exists and is distinct from the destination.
326 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir}) 324 (cd lib-src; $(MAKE) install ${MFLAGS} bindir=${bindir} libdir=${libdir})
327 -set ${COPYDESTS} ; \ 325 -set ${COPYDESTS} ; \
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 \
336 rm -rf $${subdir}/RCS ; \ 334 rm -rf $${subdir}/RCS ; \
337 rm -rf $${subdir}/CVS ; \ 335 rm -rf $${subdir}/CVS ; \
339 rm -f $${subdir}/*~ ; \ 337 rm -f $${subdir}/*~ ; \
340 done) ; \ 338 done) ; \
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 351 done
355 ${INSTALL_PROGRAM} ${INSTALLFLAGS} -m 1755 src/emacs \ 352 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
356 ${bindir}/emacs-${version} 353 chmod 1755 ${bindir}/emacs-${version}
357 -rm -f ${bindir}/emacs 354 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.
363 install.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.
398 install.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.
438 install.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
468 -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
472 ### we may be creating several layers of directories (for example, 358 ### we may be creating several layers of directories (for example,
473 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path 359 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path