[PATCH] Clean generated headers with realclean

Marek Polacek polacek@redhat.com
Tue Apr 24 08:26:00 GMT 2012


On Tue, Apr 24, 2012 at 09:58:08AM +0200, Andreas Jaeger wrote:
> 
> 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.

It seems that the patch does not apply cleanly.  This one ought to:

--- libc/Makerules.mp	2012-04-24 10:22:22.384781967 +0200
+++ libc/Makerules	2012-04-24 10:22:42.571820481 +0200
@@ -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

	Marek



More information about the Libc-alpha mailing list