]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] clean: simplify code for removal of '.am' dir
authorStefano Lattarini <stefano.lattarini@gmail.com>
Mon, 30 Jul 2012 19:33:06 +0000 (21:33 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 31 Jul 2012 02:39:18 +0000 (04:39 +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 <stefano.lattarini@gmail.com>
lib/am/am-dir.am

index 9d82b100ada20b9038db0fd471f2280b0ac54d7c..23a955453a6df29fc9f8ab7d8d47b7c55a129734 100644 (file)
@@ -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 $@