r8440: - several build farm hosts were failing 'make clean' as the list of
authorAndrew Tridgell <tridge@samba.org>
Thu, 14 Jul 2005 01:11:40 +0000 (01:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:23:03 +0000 (13:23 -0500)
  objects was overflowing their command line limits. Fix this by using a
  find -exec command. It's slower, but should be more portable.

- remove generated ASN1 files in 'make clean'
(This used to be commit da783f915865c8c5d2e02f927ebbf84719389655)

source4/build/smb_build/makefile.pm

index 337b3ae907fb12f77eb0a2e38e65a041ffe93995..013140298ca6c9a85b12eaa277be4e4cd0d83508 100644 (file)
@@ -548,13 +548,17 @@ proto_test:
 
 clean: delheaders
        @echo Removing objects
-       @-rm -f $(_ALL_OBJS_OBJS)
+       @-find . -name '*.o' -exec rm -f '{}' \;
        @echo Removing binaries
        @-rm -f bin/*
        @echo Removing dummy targets
        @-rm -f bin/.*_*
        @echo Removing generated files
        @-rm -rf librpc/gen_*
+       @echo Removing generated ASN1 files
+       @-find heimdal/lib/asn1 -name 'asn1_*.[xc]' -exec rm -f '{}' \;
+       @-find heimdal/lib/gssapi -name 'asn1_*.[xc]' -exec rm -f '{}' \;
+       @-find heimdal/lib/hdb -name 'asn1_*.[xc]' -exec rm -f '{}' \;
 
 distclean: clean
        -rm -f bin/.dummy