summaryrefslogtreecommitdiff
path: root/build-aux/Makefile.each.tail/30-directory-info.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/Makefile.each.tail/30-directory-info.mk')
-rw-r--r--build-aux/Makefile.each.tail/30-directory-info.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/build-aux/Makefile.each.tail/30-directory-info.mk b/build-aux/Makefile.each.tail/30-directory-info.mk
new file mode 100644
index 0000000000..10ebc4c1de
--- /dev/null
+++ b/build-aux/Makefile.each.tail/30-directory-info.mk
@@ -0,0 +1,4 @@
+dir_variables = $(foreach v,$(filter-out _%,$(patsubst %/$(@D),%,$(filter %/$(@D),$(.VARIABLES)))),$(if $(findstring /,$v),, $v))
+$(outdir)/directory-info:
+ $(AM_V_at)printf '%s = %s\n' $(foreach v,$(dir_variables),'$v' '$($v/$(@D))') | sort | column -s= -o= -t
+.PHONY: $(outdir)/module-info