Parallelize clean rules using GNU make features
commit0e6929ecab39164b384c76884a7eac559a1fe9b9
authorGlenn Morris <rgm@gnu.org>
Sun, 15 Jun 2014 00:17:21 +0000 (14 17:17 -0700)
committerGlenn Morris <rgm@gnu.org>
Sun, 15 Jun 2014 00:17:21 +0000 (14 17:17 -0700)
treea1c0f3548f81156c9c971d803b8d0c31e4dc1303
parent90de50e27049ae19492dd9843e50618ea4ed5d14
Parallelize clean rules using GNU make features

* Makefile.in: (submake_template): New definition.
(mostlyclean_dirs, clean_dirs, distclean_dirs, maintainer_clean_dirs):
New variables.
(mostlyclean, clean, distclean, bootstrap-clean, maintainer-clean)
(extraclean): Define using each subdirectory as a prequisite.

* lib/Makefile.am (bootstrap-clean):
* doc/emacs/Makefile.in (bootstrap-clean):
* doc/lispintro/Makefile.in (bootstrap-clean):
* doc/lispref/Makefile.in (bootstrap-clean):
* doc/misc/Makefile.in (bootstrap-clean):
* lib-src/Makefile.in (bootstrap-clean):
* lwlib/Makefile.in (bootstrap-clean):
* nextstep/Makefile.in (bootstrap-clean):
* nt/Makefile.in (bootstrap-clean):
* oldXMenu/Makefile.in (bootstrap-clean):
New rules, for symmetry/simplicity.

* lwlib/Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
* oldXMenu/Makefile.in (mostlyclean, clean, distclean, maintainer-clean, tags):
Declare as PHONY.
21 files changed:
ChangeLog
Makefile.in
doc/emacs/ChangeLog
doc/emacs/Makefile.in
doc/lispintro/ChangeLog
doc/lispintro/Makefile.in
doc/lispref/ChangeLog
doc/lispref/Makefile.in
doc/misc/ChangeLog
doc/misc/Makefile.in
lib-src/ChangeLog
lib-src/Makefile.in
lib/Makefile.am
lwlib/ChangeLog
lwlib/Makefile.in
nextstep/ChangeLog
nextstep/Makefile.in
nt/ChangeLog
nt/Makefile.in
oldXMenu/ChangeLog
oldXMenu/Makefile.in