]> granicus.if.org Git - sudo/commitdiff
add clean targets
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Feb 2010 14:53:05 +0000 (09:53 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Feb 2010 14:53:05 +0000 (09:53 -0500)
Makefile

index 96246e8b50538ce8b966c81f2d0df9163e14441d..6e9df13890c2a8d9f725361f306910f7e49d74a7 100644 (file)
--- a/Makefile
+++ b/Makefile
 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #
 
-# XXX - add sudoers, doc, compat?
+# XXX - add sudoers, doc, compat
 SUBDIRS = src plugins/sample
 
-all install:
+all clean install:
        @if [ ! -s config.status ]; then \
                echo "Please run configure first"; \
                exit 1; \
        fi
        for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@); done
+
+distclean:
+       -rm -rf pathnames.h config.h config.status config.cache \
+               config.log libtool stamp-h* autom4te.cache
+       for d in $(SUBDIRS); do (cd $$d && $(MAKE) $@); done
+
+cleandir: distclean
+
+clobber: distclean
+
+realclean: distclean