summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ct-ng.in17
1 files changed, 8 insertions, 9 deletions
diff --git a/ct-ng.in b/ct-ng.in
index 3ac36b3..87c9728 100644
--- a/ct-ng.in
+++ b/ct-ng.in
@@ -30,10 +30,9 @@ export CT_VERSION:=@@CT_VERSION@@
export CT_STOP:=$(STOP)
export CT_RESTART:=$(RESTART)
-ifeq ($(strip $(V)),)
- SILENT=@
- ECHO=echo
-else
+SILENT=@
+ECHO=echo
+ifeq ($(strip $(origin V)),command line)
ifeq ($(strip $(V)),0)
SILENT=@
ECHO=:
@@ -45,11 +44,11 @@ else
ifeq ($(strip $(V)),2)
SILENT=
ECHO=echo
- endif
- endif
- endif
-endif
-export V
+ endif # V == 2
+ endif # V== 1
+ endif # V == 0
+endif # origin V
+export SILENT ECHO
.FORCE:
.PHONY: $(PHONY)