summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-02-07 16:52:47 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2014-02-07 16:52:47 -0500
commit9c38cb4f40a7644322d1624c6f303f04d3a7b826 (patch)
tree4932a9063f8603149fbeace91ed17bd6619f1732
parent202d05f3d8eaa756a639330947231bd686378f33 (diff)
downloadmakefile_templates-9c38cb4f40a7644322d1624c6f303f04d3a7b826.tar.gz
makefile_templates-9c38cb4f40a7644322d1624c6f303f04d3a7b826.zip
cleaner directory output
-rw-r--r--subdirs.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/subdirs.mk b/subdirs.mk
index fb32315..a39b038 100644
--- a/subdirs.mk
+++ b/subdirs.mk
@@ -1,11 +1,14 @@
# -*- make -*-
export dir_symbol += -
+
+nullstring :=
+space := $(nullstring) # keep it to assign space
+
subdirs: $(SUBDIRS)
$(SUBDIRS):
- echo $(dir_symbol) '>' $@ $(MAKECMDGOALS)
- # echo $(MAKE) -C $@ $(MAKECMDGOALS)
+ echo $(subst $(space),,$(dir_symbol))'|' $@ $(MAKECMDGOALS)
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: $(SUBDIRS)