From 5844514e74eac69b71c1e1661676dd88e4450610 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Thu, 29 Oct 2015 19:34:24 -0700 Subject: Fix samples using GMP 4.3.2. Some older versions of configure (including the one in GMP 4.3.2) interpret the $ECHO environment variable as the `echo' utility to use. CT-NG sets the variable to `:' and exports it if V=0 or V=1 is supplied, breaking the samples using such configure. This currently includes bfin-unknown-linux-uclibc and powerpc-unknown-linux-uclibc. Also, correct the description of the V= variable - V=0 is *not* the default; in fact, default does not correspond to any of the V=[012] values. Signed-off-by: Alexey Neyman --- ct-ng.in | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'ct-ng.in') diff --git a/ct-ng.in b/ct-ng.in index a0568945..fee97c85 100644 --- a/ct-ng.in +++ b/ct-ng.in @@ -41,24 +41,24 @@ export CT_STOP:=$(STOP) export CT_RESTART:=$(RESTART) SILENT=@ -ECHO=echo +CT_ECHO=echo ifeq ($(strip $(origin V)),command line) ifeq ($(strip $(V)),0) SILENT=@ - ECHO=: + CT_ECHO=: else ifeq ($(strip $(V)),1) SILENT= - ECHO=: + CT_ECHO=: else ifeq ($(strip $(V)),2) SILENT= - ECHO=echo + CT_ECHO=echo endif # V == 2 endif # V== 1 endif # V == 0 endif # origin V -export V SILENT ECHO +export V SILENT CT_ECHO all: help @@ -122,7 +122,8 @@ help-config:: help-distrib:: help-env:: - @echo ' V=0|1|2 - 0 => show only human-readable messages (default)' + @echo ' V=0|1|2| - show only human-readable messages (default)' + @echo ' 0 => do not show commands or human-readable message' @echo ' 1 => show only the commands being executed' @echo ' 2 => show both' @@ -161,14 +162,14 @@ version: PHONY += clean clean:: - @$(ECHO) " CLEAN log" + @$(CT_ECHO) " CLEAN log" $(SILENT)rm -f build.log - @$(ECHO) " CLEAN build dir" + @$(CT_ECHO) " CLEAN build dir" $(SILENT)[ ! -d targets ] || chmod -R u+w targets $(SILENT)[ ! -d .build ] || chmod -R u+w .build $(SILENT)rm -rf targets .build .build-all PHONY += distclean distclean:: clean - @$(ECHO) " CLEAN .config" + @$(CT_ECHO) " CLEAN .config" $(SILENT)rm -f .config .config.* ..config* -- cgit v1.2.3