[PATCH] Clean generated headers with realclean

Andreas Jaeger aj@suse.de
Tue Apr 24 07:58:00 GMT 2012


Running make realclean, I noticed a couple of files lying around
including many .h files that were generated as part of
gen-as-const-headers.

Fixed with the appended patch, tested with running make realclean on
Linux/x86-64.

Note there are still a few files lying around...

Ok to commit?

Andreas

2012-04-24  Andreas Jaeger  <aj@suse.de>

	* Makerules (common-clean): Also remove gen-as-const-headers
	files.

diff --git a/Makerules b/Makerules
index d184be6..d0e98bb 100644
--- a/Makerules
+++ b/Makerules
@@ -1330,6 +1330,7 @@ common-clean: common-mostlyclean
 	-rm -f $(objpfx)*.d $(objpfx)*.dt
 	-rm -fr $(addprefix $(objpfx),$(generated-dirs))
 	-rm -f $(addprefix $(common-objpfx),$(common-generated))
+	-rm -f $(gen-as-const-headers:%.sym=$(common-objpfx)%.h)
 

 # Produce a file `stubs' which contains `#define __stub_FUNCTION'
 # for each function which is a stub.  We grovel over all the .d files

-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126



More information about the Libc-alpha mailing list