This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix install-no-fixedincludes mishaps


Il 16/05/2012 14:54, Olivier Hainque ha scritto:
> + 
> + install-no-fixedincludes:
> + # Stash the current set of headers away, save stamps we're going to alter
> + # explicitly, and arrange for fixincludes not to run next time we trigger
> + # a headers rebuild.
> + 
> + 	-rm -rf tmp-include
> + 	-mv include tmp-include 2>/dev/null
> + 	-mv include-fixed tmp-include-fixed 2>/dev/null
> + 	-mv stmp-int-hdrs tmp-stmp-int-hdrs 2>/dev/null
> + 	-mv stmp-fixinc tmp-stmp-fixinc 2>/dev/null
> + 	-mkdir include
> + 	-cp -p $(srcdir)/gsyslimits.h include/syslimits.h
> + 	-touch stmp-fixinc
> + 
> + # Rebuild our internal headers, restore the original stamps so that "install"
> + # doesn't trigger pointless rebuilds because of that update, then do install
> + 
> + 	$(MAKE) $(FLAGS_TO_PASS) stmp-int-hdrs
> + 
> + 	-mv tmp-stmp-int-hdrs stmp-int-hdrs 2>/dev/null
> + 	-mv tmp-stmp-fixinc stmp-fixinc 2>/dev/null
> + 
> + 	$(MAKE) $(FLAGS_TO_PASS) install
> + 
> + # Restore the original set of maybe-fixed headers
> + 
> + 	-rm -rf include; mv tmp-include include 2>/dev/null
> + 	-rm -rf include-fixed; mv tmp-include-fixed include-fixed 2>/dev/null
> + 

Please indent the comments with a tab and remove the empty lines.
Ok with that change.

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]