[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/source_script_in_makefile e1b205e 2/3: Make trac
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/source_script_in_makefile e1b205e 2/3: Make tracing information easier to follow |
Date: |
Sat, 18 May 2019 08:17:23 -0400 (EDT) |
branch: odd/source_script_in_makefile
commit e1b205e20baf8ee0913caaa4722b48946f824334
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Make tracing information easier to follow
---
child.make | 2 +-
parent.make | 6 +++---
set.sh | 4 ++--
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/child.make b/child.make
index 81fe44e..4505ae7 100644
--- a/child.make
+++ b/child.make
@@ -1,3 +1,3 @@
.PHONY: all
all:
- @echo "targets in 'child.make': LMI_IN $$LMI_IN; LMI_OUT1 $$LMI_OUT1;
LMI_OUT2 $$LMI_OUT2"
+ @echo "'$$LMI_IN' --> '$$LMI_OUT1', '$$LMI_OUT2' : targets in
'child.make'"
diff --git a/parent.make b/parent.make
index b1d2c69..6a3cf83 100644
--- a/parent.make
+++ b/parent.make
@@ -17,7 +17,7 @@ export LMI_ENV_FILE := env_$(shell date -u +'%s_%N').eraseme
parent.make:: source_env_vars ;
$(eval include $(LMI_ENV_FILE))
- @echo "eval in 'parent.make': LMI_IN $$LMI_IN; LMI_OUT1 $$LMI_OUT1;
LMI_OUT2 $$LMI_OUT2"
+ @echo "'$$LMI_IN' --> '$$LMI_OUT1', '$$LMI_OUT2' : eval in
'parent.make'"
# '--force': the file won't be there when this makefile is remade
rm --force $(LMI_ENV_FILE)
@@ -25,10 +25,10 @@ parent.make:: source_env_vars ;
source_env_vars:
@echo "Sourcing 'set.sh'"; \
. ./set.sh ; \
- echo "sourced in 'parent.make': LMI_IN $$LMI_IN; LMI_OUT1 $$LMI_OUT1;
LMI_OUT2 $$LMI_OUT2"
+ echo "'$$LMI_IN' --> '$$LMI_OUT1', '$$LMI_OUT2' : sourced in
'parent.make'"
all:
- @echo "targets in 'parent.make': LMI_IN $$LMI_IN; LMI_OUT1 $$LMI_OUT1;
LMI_OUT2 $$LMI_OUT2"
+ @echo "'$$LMI_IN' --> '$$LMI_OUT1', '$$LMI_OUT2' : targets in
'parent.make'"
$(MAKE) --no-print-directory -f child.make
# Obviously one could simply write a cover script to replace direct
diff --git a/set.sh b/set.sh
index 9229288..0660dc9 100755
--- a/set.sh
+++ b/set.sh
@@ -5,7 +5,7 @@ foo()
# $LMI_ENV_FILE is defined by the makefile that sources this script.
# shellcheck disable=SC2154
echo "LMI_ENV_FILE in 'set.sh': $LMI_ENV_FILE"
-echo "entering 'set.sh': LMI_IN $LMI_IN; LMI_OUT1 $LMI_OUT1; LMI_OUT2
$LMI_OUT2"
+echo "'$LMI_IN' --> '$LMI_OUT1', '$LMI_OUT2' : entering 'set.sh'"
export LMI_OUT1="$LMI_IN"
export LMI_OUT2="$LANG"
@@ -15,7 +15,7 @@ case "$LMI_IN" in
(*) ;;
esac
-echo "leaving 'set.sh': LMI_IN $LMI_IN; LMI_OUT1 $LMI_OUT1; LMI_OUT2 $LMI_OUT2"
+echo "'$LMI_IN' --> '$LMI_OUT1', '$LMI_OUT2' : leaving 'set.sh'"
if [ -n "$LMI_ENV_FILE" ]; then
{
echo "export LMI_OUT1 := $LMI_OUT1"