]> git.ozlabs.org Git - ccan/commitdiff
Add missing files to make clean
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 16 Feb 2016 11:53:50 +0000 (22:53 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 29 Apr 2016 23:18:28 +0000 (09:18 +1000)
At present, "make clean" will not remove the module-Makefile files for
non-top-level modules.  It also won't remove the generated config.h.
Correct those errors.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Makefile

index bfd44e319a57756b69cff075aaf698fcd8d9c4fa..856baa90f483bea02f2ddcabfbfa407922c3ed45 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -64,8 +64,9 @@ ccan/%/info: ccan/%/_info
        $(CC) $(CCAN_CFLAGS) -o $@ -x c $<
 
 clean: tools-clean
-       $(RM) `find * -name '*.o'` `find * -name '.depends'` `find * -name '*.a'`  `find * -name info` `find * -name '*.d'`
-       $(RM) inter-depends lib-depends test-depends ccan/*-Makefile
+       $(RM) `find * -name '*.o'` `find * -name '.depends'` `find * -name '*.a'`  `find * -name info` `find * -name '*.d'` `find ccan -name '*-Makefile'`
+       $(RM) config.h
+       $(RM) inter-depends lib-depends test-depends
 
 # Creates a dependency from the tests to the object files which it needs.
 inter-depends: $(ALL_DEPENDS) Makefile