summaryrefslogtreecommitdiff
path: root/ct-ng.in
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2015-10-30 02:34:24 (GMT)
committerAlexey Neyman <stilor@att.net>2015-10-30 23:24:52 (GMT)
commit5844514e74eac69b71c1e1661676dd88e4450610 (patch)
treec59b6d1ebfb892cd69cdc6019ca9c28a9ad5d3fb /ct-ng.in
parent1ad356c1789523ea7124108db8fd4b834e50558d (diff)
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 <stilor@att.net>
Diffstat (limited to 'ct-ng.in')
-rw-r--r--ct-ng.in19
1 files changed, 10 insertions, 9 deletions
diff --git a/ct-ng.in b/ct-ng.in
index a056894..fee97c8 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|<unset> - <unset> 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*