comparison Makefile.in @ 13901:c9243845a191

(install-arch-indep): Give all files read permission.
author Richard M. Stallman <rms@gnu.org>
date Sun, 31 Dec 1995 19:21:18 +0000
parents 94f0319d4cbb
children bcc924fdb1f8
comparison
equal deleted inserted replaced
13900:37c5ece37d71 13901:c9243845a191
295 ## We don't depend on `all', but rather on ${SUBDIR}, so that we won't 295 ## We don't depend on `all', but rather on ${SUBDIR}, so that we won't
296 ## ever modify src/paths.h. 296 ## ever modify src/paths.h.
297 install: ${SUBDIR} install-arch-dep install-arch-indep blessmail 297 install: ${SUBDIR} install-arch-dep install-arch-indep blessmail
298 @true 298 @true
299 299
300 ### Note that we copy the DOC-* files from the build etc directory 300 ### Install the executables that were compiled specifically for this machine.
301 ### as well as lots of things from ${srcdir}/etc.
302 install-arch-dep: mkdir 301 install-arch-dep: mkdir
303 (cd lib-src; \ 302 (cd lib-src; \
304 $(MAKE) install $(MFLAGS) prefix=${prefix} \ 303 $(MAKE) install $(MFLAGS) prefix=${prefix} \
305 exec_prefix=${exec_prefix} bindir=${bindir} \ 304 exec_prefix=${exec_prefix} bindir=${bindir} \
306 libexecdir=${libexecdir} archlibdir=${archlibdir}) 305 libexecdir=${libexecdir} archlibdir=${archlibdir})
307 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version} 306 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version}
308 -chmod 1755 ${bindir}/emacs-${version} 307 -chmod 1755 ${bindir}/emacs-${version}
309 rm -f ${bindir}/$(EMACS) 308 rm -f ${bindir}/$(EMACS)
310 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) 309 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS)
311 310
312 ### Note that we copy the DOC-* files from the build etc directory 311 ### Install the files that are machine-independent.
313 ### as well as lots of things from ${srcdir}/etc. 312 ### Most of them come straight from the distribution;
313 ### the exception is the DOC-* files, which are copied
314 ### from the build directory.
315
314 ### Note that we copy DOC* and then delete DOC 316 ### Note that we copy DOC* and then delete DOC
315 ### as a workaround for a bug in tar on Ultrix 4.2. 317 ### as a workaround for a bug in tar on Ultrix 4.2.
316
317 install-arch-indep: mkdir 318 install-arch-indep: mkdir
318 -set ${COPYDESTS} ; \ 319 -set ${COPYDESTS} ; \
319 for dir in ${COPYDIR} ; do \ 320 for dir in ${COPYDIR} ; do \
320 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \ 321 if [ `(cd $$1 && /bin/pwd)` != `(cd $${dir} && /bin/pwd)` ] ; then \
321 rm -rf $$1 ; \ 322 rm -rf $$1 ; \
322 fi ; \ 323 fi ; \
323 shift ; \ 324 shift ; \
324 done 325 done
325 -set ${COPYDESTS} ; \ 326 -set ${COPYDESTS} ; \
326 mkdir ${COPYDESTS} ; \ 327 mkdir ${COPYDESTS} ; \
327 chmod ugo+rx ${COPYDESTS} ; \ 328 chmod ugo+rx ${COPYDESTS} ; \
328 for dir in ${COPYDIR} ; do \ 329 for dir in ${COPYDIR} ; do \
329 dest=$$1 ; shift ; \ 330 dest=$$1 ; shift ; \
330 [ -d $${dir} ] \ 331 [ -d $${dir} ] \
331 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \ 332 && [ `(cd $${dir} && /bin/pwd)` != `(cd $${dest} && /bin/pwd)` ] \
332 && (echo "Copying $${dir} to $${dest}..." ; \ 333 && (echo "Copying $${dir} to $${dest}..." ; \
333 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \ 334 (cd $${dir}; tar -cf - . )|(cd $${dest};umask 022; tar -xvf - ); \
334 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \ 335 for subdir in `find $${dest} -type d ! -name RCS -print` ; do \
335 rm -rf $${subdir}/RCS ; \ 336 rm -rf $${subdir}/RCS ; \
336 rm -rf $${subdir}/CVS ; \ 337 rm -rf $${subdir}/CVS ; \
337 rm -f $${subdir}/\#* ; \ 338 rm -f $${subdir}/\#* ; \
338 rm -f $${subdir}/.\#* ; \ 339 rm -f $${subdir}/.\#* ; \
339 rm -f $${subdir}/*~ ; \ 340 rm -f $${subdir}/*~ ; \
340 rm -f $${subdir}/*.orig ; \ 341 rm -f $${subdir}/*.orig ; \
341 rm -f $${subdir}/[mM]akefile* ; \ 342 rm -f $${subdir}/[mM]akefile* ; \
342 rm -f $${subdir}/ChangeLog* ; \ 343 rm -f $${subdir}/ChangeLog* ; \
343 rm -f $${subdir}/dired.todo ; \ 344 rm -f $${subdir}/dired.todo ; \
344 done) ; \ 345 done) ; \
345 done 346 done
346 -rm -f ${lispdir}/subdirs.el 347 -rm -f ${lispdir}/subdirs.el
347 $(srcdir)/update-subdirs ${lispdir} 348 $(srcdir)/update-subdirs ${lispdir}
349 chmod -R a+r ${COPYDESTS}
348 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ 350 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \
349 then \ 351 then \
350 echo "Copying etc/DOC-* to ${docdir} ..." ; \ 352 echo "Copying etc/DOC-* to ${docdir} ..." ; \
351 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \ 353 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \
352 (cd $(docdir); rm DOC) \ 354 (cd $(docdir); chmod a+r DOC*; rm DOC) \
353 else true; fi 355 else true; fi
354 thisdir=`/bin/pwd`; \ 356 thisdir=`/bin/pwd`; \
355 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ 357 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \
356 then \ 358 then \
357 (cd ${infodir}; \ 359 (cd ${infodir}; \
359 if [ ! -f dir.old ]; then mv -f dir dir.old; \ 361 if [ ! -f dir.old ]; then mv -f dir dir.old; \
360 else mv -f dir dir.bak; fi; \ 362 else mv -f dir dir.bak; fi; \
361 fi; \ 363 fi; \
362 cd ${srcdir}/info ; \ 364 cd ${srcdir}/info ; \
363 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \ 365 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/dir ${infodir}/dir); \
366 (cd $${thisdir}; chmod a+r ${infodir}/dir); \
364 for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \ 367 for f in cl* dired-x* ediff* emacs* forms* gnus* info* mh-e* sc* vip*; do \
365 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f); \ 368 (cd $${thisdir}; \
369 ${INSTALL_DATA} ${srcdir}/info/$$f ${infodir}/$$f; \
370 chmod a+r ${infodir}/$$f); \
366 done); \ 371 done); \
367 else true; fi 372 else true; fi
368 thisdir=`/bin/pwd`; cd ${srcdir}/etc; for page in emacs etags ctags ; do \ 373 thisdir=`/bin/pwd`; \
369 (cd $${thisdir}; ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}); \ 374 cd ${srcdir}/etc; \
375 for page in emacs etags ctags ; do \
376 (cd $${thisdir}; \
377 ${INSTALL_DATA} ${srcdir}/etc/$${page}.1 ${man1dir}/$${page}${manext}; \
378 chmod a+r ${man1dir}/$${page}${manext}); \
370 done 379 done
371 380
372 ### Build all the directories we're going to install Emacs in. Since 381 ### Build all the directories we're going to install Emacs in. Since
373 ### we may be creating several layers of directories (for example, 382 ### we may be creating several layers of directories (for example,
374 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs 383 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use mkinstalldirs