aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1993-06-16 23:46:17 +0000
committerJim Blandy1993-06-16 23:46:17 +0000
commitd4acf74f7e75b98e987110e06c7351b417222e59 (patch)
treeb9c43ef0994a1e128641822c201b4e1388bebd8d
parente2fe2f5238d9619254fb3335156cef5b0704b1f5 (diff)
downloademacs-d4acf74f7e75b98e987110e06c7351b417222e59.tar.gz
emacs-d4acf74f7e75b98e987110e06c7351b417222e59.zip
* Makefile.in (CPP): New variable.
(src/Makefile): Edit CPP into src/Makefile. Bring mumbleclean targets into conformance with GNU coding standards. * Makefile.in (mostlyclean, clean): Separate these two; just have them pass the request to the subdirectory makefiles. (distclean): Pass the request down, and then get rid of the files configure built, and get rid of the Makefiles. (realclean): Pass the request down, and then do the same things distclean does. (uninstall, info, dvi): New targets.
-rw-r--r--Makefile.in120
1 files changed, 86 insertions, 34 deletions
diff --git a/Makefile.in b/Makefile.in
index 1fc107853a6..0dcc2fe04d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -37,6 +37,7 @@ MAKE = make # BSD doesn't have it as a default.
37# ==================== Things `configure' Might Edit ==================== 37# ==================== Things `configure' Might Edit ====================
38 38
39CC=@CC@ 39CC=@CC@
40CPP=@CPP@
40C_SWITCH_SYSTEM=@c_switch_system@ 41C_SWITCH_SYSTEM=@c_switch_system@
41ALLOCA=@ALLOCA@ 42ALLOCA=@ALLOCA@
42LN_S=@LN_S@ 43LN_S=@LN_S@
@@ -278,6 +279,7 @@ src/Makefile: ${srcdir}/src/Makefile.in Makefile
278 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/src|' \ 279 -e 's|^\(srcdir *=\).*$$|\1'"${srcdir}"'/src|' \
279 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/src|' \ 280 -e 's|^\(VPATH *=\).*$$|\1'"${srcdir}"'/src|' \
280 -e 's|^CC *=.*$$|CC='"${CC}"'|' \ 281 -e 's|^CC *=.*$$|CC='"${CC}"'|' \
282 -e 's|^CPP *=.*$$|CPP='"${CPP}"'|' \
281 -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \ 283 -e 's|^LN_S *=.*$$|LN_S='"${LN_S}"'|' \
282 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \ 284 -e 's|^CFLAGS *=.*$$|CFLAGS='"${CFLAGS}"'|' \
283 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1'"${LD_SWITCH_X_SITE}"'|' \ 285 -e 's|^\(LD_SWITCH_X_SITE *=\).*$$|\1'"${LD_SWITCH_X_SITE}"'|' \
@@ -383,52 +385,97 @@ mkdir: FRC.mkdir
383 `echo ${locallisppath} | sed 's/:/ /'` 385 `echo ${locallisppath} | sed 's/:/ /'`
384 chmod 777 ${COPYDESTS} ${lockdir} 386 chmod 777 ${COPYDESTS} ${lockdir}
385 387
388### Delete all the installed files that the `install' target would
389### create (but not the noninstalled files such as `make all' would
390### create).
391uninstall:
392 (cd lib-src; \
393 $(MAKE) ${MFLAGS} uninstall
394 prefix=${prefix} exec_prefix=${exec_prefix}
395 bindir=${bindir} libdir=${libdir} archlibdir=${archlibdir})
396 rm -f ${lispdir} ${etcdir}
397 case ${lispdir} in \
398 ${datadir}/emacs/${version}/* ) \
399 rm -rf ${datadir}/emacs/${version} \
400 ;; \
401 esac
402 case ${etcdir} in \
403 ${datadir}/emacs/${version}/* ) \
404 rm -rf ${datadir}/emacs/${version} \
405 ;; \
406 esac
407 (cd ${infodir}; rm -f cl* emacs* forms* info* vip*)
408 (cd ${mandir}; rm -f emacs.1 etags.1 ctags.1)
409 (cd ${bindir}; rm -f emacs-${version} emacs)
410
411
386### Some makes seem to remember that they've built something called FRC, 412### Some makes seem to remember that they've built something called FRC,
387### so you can only use a given FRC once per makefile. 413### so you can only use a given FRC once per makefile.
388FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir: 414FRC FRC.src.paths.h FRC.src FRC.lib-src FRC.mkdir:
389 415FRC.mostlyclean FRC.clean FRC.distclean FRC.realclean:
390 416
391# ==================== Cleaning up and miscellanea ==================== 417# ==================== Cleaning up and miscellanea ====================
392 418
393### `clean'
394### Delete all files from the current directory that are normally
395### created by building the program. Don't delete the files that
396### record the configuration. Also preserve files that could be made
397### by building, but normally aren't because the distribution comes
398### with them.
399### `mostlyclean' 419### `mostlyclean'
400### Like `clean', but may refrain from deleting a few files that 420### Like `clean', but may refrain from deleting a few files that people
401### people normally don't want to recompile. For example, the 421### normally don't want to recompile. For example, the `mostlyclean'
402### `mostlyclean' target for GCC does not delete `libgcc.a', because 422### target for GCC does not delete `libgcc.a', because recompiling it
403### recompiling it is rarely necessary and takes a lot of time. 423### is rarely necessary and takes a lot of time.
424mostlyclean: FRC.mostlyclean
425 (cd src; make ${MFLAGS} mostlyclean)
426 (cd oldXMenu; make ${MFLAGS} mostlyclean)
427 (cd lib-src; make ${MFLAGS} mostlyclean)
428 (cd man; make ${MFLAGS} mostlyclean)
429
430### `clean'
431### Delete all files from the current directory that are normally
432### created by building the program. Don't delete the files that
433### record the configuration. Also preserve files that could be made
434### by building, but normally aren't because the distribution comes
435### with them.
404### 436###
405clean mostlyclean: 437### Delete `.dvi' files here if they are not part of the distribution.
406 cd src; $(MAKE) clean 438clean: FRC.clean
407 cd lib-src; $(MAKE) clean 439 (cd src; make ${MFLAGS} clean)
408 cd oldXMenu; $(MAKE) clean 440 (cd oldXMenu; make ${MFLAGS} clean)
409 if [ `(cd ${etcdir} && /bin/pwd)` != `(cd etc && /bin/pwd)` ] ; then \ 441 (cd lib-src; make ${MFLAGS} clean)
410 cd etc; $(MAKE) clean; \ 442 (cd man; make ${MFLAGS} clean)
411 else true; \
412 fi
413 443
414### `distclean' 444### `distclean'
415### Delete all files from the current directory that are created by 445### Delete all files from the current directory that are created by
416### configuring or building the program. This should leave only the 446### configuring or building the program. If you have unpacked the
417### files that would be in the distribution. 447### source and built the program without creating any other files,
418distclean: 448### `make distclean' should leave only the files that were in the
419 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} distclean); done 449### distribution.
420 -(cd lock; rm *) 450top_distclean=\
421 -rm config.status config-tmp-* 451 rm -f config.status build-install ; \
452 rm -f Makefile ${SUBDIR_MAKEFILES} ; \
453 (cd lock ; rm *)
454distclean: FRC.distclean
455 (cd src; make ${MFLAGS} distclean)
456 (cd oldXMenu; make ${MFLAGS} distclean)
457 (cd lib-src; make ${MFLAGS} distclean)
458 (cd man; make ${MFLAGS} distclean)
459 ${top_distclean}
460
422 461
423### `realclean' 462### `realclean'
424### Delete everything from the current directory that can be 463### Delete everything from the current directory that can be
425### reconstructed with this makefile. This typically includes 464### reconstructed with this Makefile. This typically includes
426### everything deleted by distclean, plus more: C source files 465### everything deleted by distclean, plus more: C source files
427### produced by Bison, tags tables, info files, and so on. 466### produced by Bison, tags tables, info files, and so on.
428realclean: 467###
429 for i in ${SUBDIR}; do (cd $$i; $(MAKE) ${MFLAGS} realclean); done 468### One exception, however: `make realclean' should not delete
430 (cd lock; rm *) 469### `configure' even if `configure' can be remade using a rule in the
431 rm config.status 470### Makefile. More generally, `make realclean' should not delete
471### anything that needs to exist in order to run `configure' and then
472### begin to build the program.
473realclean: FRC.realclean
474 (cd src; make ${MFLAGS} realclean)
475 (cd oldXMenu; make ${MFLAGS} realclean)
476 (cd lib-src; make ${MFLAGS} realclean)
477 (cd man; make ${MFLAGS} realclean)
478 ${top_distclean}
432 479
433### This doesn't actually appear in the coding standards, but Karl 480### This doesn't actually appear in the coding standards, but Karl
434### says GCC supports it, and that's where the configuration part of 481### says GCC supports it, and that's where the configuration part of
@@ -484,3 +531,8 @@ check:
484 531
485dist: 532dist:
486 cd ${srcdir}; make-dist 533 cd ${srcdir}; make-dist
534
535info:
536 (cd ${srcdir}/man; make ${MFLAGS} info)
537dvi:
538 (cd ${srcdir}/man; make ${MFLAGS} dvi)