Mercurial > emacs
comparison Makefile.in @ 7117:f1b6a927a442
(install-doc): New target.
(install-arch-dep): Depend on install-doc.
(mkdir): Create docdir.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 26 Apr 1994 22:07:10 +0000 |
parents | 2c8a6d503e76 |
children | 48a7943730c1 |
comparison
equal
deleted
inserted
replaced
7116:d35b11eed89f | 7117:f1b6a927a442 |
---|---|
264 ## ever modify src/paths.h. | 264 ## ever modify src/paths.h. |
265 install: ${SUBDIR} install-arch-dep install-arch-indep; | 265 install: ${SUBDIR} install-arch-dep install-arch-indep; |
266 | 266 |
267 ### Note that we copy the DOC-* files from the build etc directory | 267 ### Note that we copy the DOC-* files from the build etc directory |
268 ### as well as lots of things from ${srcdir}/etc. | 268 ### as well as lots of things from ${srcdir}/etc. |
269 install-arch-dep: mkdir | 269 |
270 ## The docfile isn't really architecture-dependent, but we want to | |
271 ## install it along with the version of Emacs that it's keyed to. | |
272 install-arch-dep: mkdir install-doc | |
270 (cd lib-src; \ | 273 (cd lib-src; \ |
271 $(MAKE) install $(MFLAGS) prefix=${prefix} \ | 274 $(MAKE) install $(MFLAGS) prefix=${prefix} \ |
272 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ | 275 exec_prefix=${exec_prefix} bindir=${bindir} libdir=${libdir} \ |
273 archlibdir=${archlibdir}) | 276 archlibdir=${archlibdir}) |
274 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version} | 277 ${INSTALL_PROGRAM} src/emacs ${bindir}/emacs-${version} |
275 -chmod 1755 ${bindir}/emacs-${version} | 278 -chmod 1755 ${bindir}/emacs-${version} |
276 rm -f ${bindir}/$(EMACS) | 279 rm -f ${bindir}/$(EMACS) |
277 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) | 280 -ln ${bindir}/emacs-${version} ${bindir}/$(EMACS) |
278 | 281 |
279 ### Note that we copy the DOC-* files from the build etc directory | 282 install-doc: mkdir |
280 ### as well as lots of things from ${srcdir}/etc. | 283 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ |
284 then \ | |
285 echo "Copying etc/DOC* ..." ; \ | |
286 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \ | |
287 else true; fi | |
288 | |
281 install-arch-indep: mkdir | 289 install-arch-indep: mkdir |
282 -set ${COPYDESTS} ; \ | 290 -set ${COPYDESTS} ; \ |
283 for dir in ${COPYDIR} ; do \ | 291 for dir in ${COPYDIR} ; do \ |
284 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ | 292 if [ `(cd $$1 && pwd)` != `(cd $${dir} && pwd)` ] ; then \ |
285 rm -rf $$1 ; \ | 293 rm -rf $$1 ; \ |
299 rm -rf $${subdir}/CVS ; \ | 307 rm -rf $${subdir}/CVS ; \ |
300 rm -f $${subdir}/\#* ; \ | 308 rm -f $${subdir}/\#* ; \ |
301 rm -f $${subdir}/*~ ; \ | 309 rm -f $${subdir}/*~ ; \ |
302 done) ; \ | 310 done) ; \ |
303 done | 311 done |
304 if [ `(cd ./etc; /bin/pwd)` != `(cd ${docdir}; /bin/pwd)` ]; \ | |
305 then \ | |
306 echo "Copying etc/DOC* ..." ; \ | |
307 (cd etc; tar -cf - DOC*)|(cd ${docdir}; umask 0; tar -xvf - ); \ | |
308 else true; fi | |
309 thisdir=`pwd`; \ | 312 thisdir=`pwd`; \ |
310 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ | 313 if [ `(cd ${srcdir}/info && /bin/pwd)` != `(cd ${infodir} && /bin/pwd)` ]; \ |
311 then \ | 314 then \ |
312 (cd ${srcdir}/info ; \ | 315 (cd ${srcdir}/info ; \ |
313 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ | 316 if [ ! -f ${infodir}/dir ] && [ -f dir ]; then \ |
325 ### we may be creating several layers of directories (for example, | 328 ### we may be creating several layers of directories (for example, |
326 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path | 329 ### /usr/local/lib/emacs/19.0/mips-dec-ultrix4.2), we use make-path |
327 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. | 330 ### instead of mkdir. Not all systems' mkdirs have the `-p' flag. |
328 mkdir: FRC.mkdir | 331 mkdir: FRC.mkdir |
329 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ | 332 ./lib-src/make-path ${COPYDESTS} ${lockdir} ${infodir} ${mandir} \ |
330 ${bindir} ${datadir} ${libdir} \ | 333 ${bindir} ${datadir} ${docdir} ${libdir} \ |
331 `echo ${locallisppath} | sed 's/:/ /'` | 334 `echo ${locallisppath} | sed 's/:/ /'` |
332 -chmod 777 ${lockdir} | 335 -chmod 777 ${lockdir} |
333 | 336 |
334 ### Delete all the installed files that the `install' target would | 337 ### Delete all the installed files that the `install' target would |
335 ### create (but not the noninstalled files such as `make all' would | 338 ### create (but not the noninstalled files such as `make all' would |