r7768: use _ALL_OBJS in clean target
[gd/samba-autobuild/.git] / 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