This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: fix install-no-fixedincludes mishaps
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Olivier Hainque <hainque at adacore dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 16 May 2012 15:17:53 +0200
- Subject: Re: fix install-no-fixedincludes mishaps
- References: <0607880B-B886-42A9-BED2-91DD281E41BC@adacore.com> <F700675E-7E98-4949-8094-AE5DBB239C7B@adacore.com>
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