summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2014-06-14 17:17:21 -0700
committerGlenn Morris <rgm@gnu.org>2014-06-14 17:17:21 -0700
commit0e6929ecab39164b384c76884a7eac559a1fe9b9 (patch)
treea1c0f3548f81156c9c971d803b8d0c31e4dc1303 /lwlib
parent90de50e27049ae19492dd9843e50618ea4ed5d14 (diff)
downloademacs-0e6929ecab39164b384c76884a7eac559a1fe9b9.tar.gz
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.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/ChangeLog6
-rw-r--r--lwlib/Makefile.in9
2 files changed, 12 insertions, 3 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index c62b72ab9a1..6af0b419740 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-15 Glenn Morris <rgm@gnu.org>
+
+ * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
+ Declare as PHONY.
+ (bootstrap-clean): New.
+
2014-06-13 Glenn Morris <rgm@gnu.org>
* Makefile.in ($(globals_h)):
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index 145f6ec56c5..f8f6fe2c9d7 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -91,13 +91,16 @@ lwlib-Xm.o: $(src_h) lwlib-Xm.c lwlib-Xm.h lwlib.h lwlib-int.h lwlib-utils.h
xlwmenu.o: $(src_h) xlwmenu.c xlwmenu.h lwlib.h xlwmenuP.h \
$(srcdir)/../src/xterm.h
-mostlyclean:
+
+.PHONY: mostlyclean clean distclean bootstrap-clean maintainer-clean
+
+clean mostlyclean:
rm -f *.o liblw.a \#*
-clean: mostlyclean
distclean: clean
rm -f Makefile
-maintainer-clean: distclean
+
+bootstrap-clean maintainer-clean: distclean
rm -f TAGS