From patchwork Thu Aug 25 11:49:07 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [MELT] Allow build to "fail" Date: Thu, 25 Aug 2011 01:49:07 -0000 From: Alexandre Lissy X-Patchwork-Id: 111558 Message-Id: <1314272947-31268-2-git-send-email-alissy@mandriva.com> To: gcc-patches@gcc.gnu.org Cc: gcc-melt@googlegroups.com, basile@starynkevitch.net, Alexandre Lissy The meltgendoc.texi target runs GCC and might return a value of 1 which confuses make while the texi file was correctly generated ; thus, adding '|| true' allows for the build to continue instead of stopping. --- gcc/ChangeLog.MELT | 4 ++++ gcc/melt-build.tpl | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/gcc/ChangeLog.MELT b/gcc/ChangeLog.MELT index f32e960..c801737 100644 --- a/gcc/ChangeLog.MELT +++ b/gcc/ChangeLog.MELT @@ -1,4 +1,8 @@ 2011-08-25 Alexandre Lissy + * gcc/melt-build.tpl: Allow build to "fail" ; meltgentdoc.texi target + might return 1 while the generation was successful + +2011-08-25 Alexandre Lissy * gcc/melt/melt-build.tpl: Fix meltgendoc.texi target (missing .texi extension for generated file) diff --git a/gcc/melt-build.tpl b/gcc/melt-build.tpl index 87f920b..afbee1f 100644 --- a/gcc/melt-build.tpl +++ b/gcc/melt-build.tpl @@ -617,7 +617,7 @@ meltgendoc.texi: $(melt_default_modules_list).modlis \ empty-file-for-melt.c > $(notdir $(basename $@)).args-tmp mv $(notdir $(basename $@)).args-tmp $(notdir $(basename $@)).args @echo -n $(notdir $(basename $@)).args: ; cat $(notdir $(basename $@)).args ; echo "***** doing " $@ - $(melt_make_cc1) @$(notdir $(basename $@)).args + $(melt_make_cc1) @$(notdir $(basename $@)).args || true vpath %.so $(melt_make_module_dir) .