automake-ng
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-NG] [FYI] [ng] clean: simplify code for removal of '.am' dir


From: Stefano Lattarini
Subject: [Automake-NG] [FYI] [ng] clean: simplify code for removal of '.am' dir
Date: Mon, 30 Jul 2012 22:10:48 +0200

* lib/am/am-dir.am (am--distclean-amdir): Delete this phony rule and
the 'distclean-am' dependency on it ...
(am__distclean_dirs): ... simply append $(am.dir) to this instead.

Signed-off-by: Stefano Lattarini <address@hidden>
---
 lib/am/am-dir.am | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/lib/am/am-dir.am b/lib/am/am-dir.am
index 9d82b10..23a9554 100644
--- a/lib/am/am-dir.am
+++ b/lib/am/am-dir.am
@@ -34,10 +34,7 @@ am.top-dir = $(top_builddir)/$(am.dir)
 # Its counterpart with an absolute path and for use in subdir makefiles.
 am.top-dir.abs = $(abs_top_builddir)/$(am.dir)
 
-.PHONY: am--distclean-amdir
-am--distclean-amdir:
-       rm -rf $(am.dir)
-distclean-am: am--distclean-amdir
+am__distclean_dirs += $(am.dir)
 
 $(am.dir):
        @mkdir $@
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]