]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] deptrack: clean depdirs using *clean-am targets
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 30 May 2012 14:35:34 +0000 (16:35 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 21 Jun 2012 19:04:37 +0000 (21:04 +0200)
* lib/am/depend.am (am--clean-depdirs): New target, removing the
$(DEPDIR) directory.
(distclean, maintainer-clean): Renamed ...
(distclean-am, maintainer-clean-am): ... to these, and depend on the new
target above to clean the $(DEPDIR) directory.  Given the current status
of the Automake internals, this shouldn't cause any change in the automake
behaviour, but the new form of these declarations will be useful in future
refactorings.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/depend.am

index 4d041bf5ffd77c2d8b83be2fd3528da0e925ad5c..c29891aea0e7d6215ed2b9d5fd2ba52493c25930 100644 (file)
@@ -16,8 +16,9 @@
 
 am__mv = mv -f
 
-distclean:
+.PHONY: am--clean-depdirs
+am--clean-depdirs:
        -rm -rf %DEPDIRS%
 
-maintainer-clean:
-       -rm -rf %DEPDIRS%
+distclean-am: am--clean-depdirs
+maintainer-clean-am: am--clean-depdirs