r7768: use _ALL_OBJS in clean target
authorAndrew Tridgell <tridge@samba.org>
Sun, 19 Jun 2005 23:21:37 +0000 (23:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:18:33 +0000 (13:18 -0500)
source/build/smb_build/makefile.pm

index 74d87fad3162ef263406fdd59d5d6fef2e94d9e6..aba23be2ebc3575a2c04ff6d0e7180e13edfe3d0 100644 (file)
@@ -513,8 +513,10 @@ proto_test:
        @[ -f $(builddir)/include/proto.h ] || $(MAKE) proto
 
 clean: delheaders
-       -rm -f *.o */*.o */*/*.o */*/*/*.o bin/* bin/.*_*
-       -rm -rf librpc/gen_*
+       @echo Removing objects and binaries
+       @-rm -f $(_ALL_OBJS_OBJS) bin/* bin/.*_*
+       @echo Removing generated files
+       @-rm -rf librpc/gen_*
 
 distclean: clean
        -rm -f bin/.dummy