From 5a34e6f48c2cc478a9e9b62d3683007689a98f61 Mon Sep 17 00:00:00 2001 From: Brian Cox Date: Tue, 29 Aug 2017 18:57:59 -0700 Subject: [PATCH] Add a 'targets' make target to list make targets. Also add a 'test' target as an alias of 'check'. --- Makefile.am | 6 ++++++ Makefile.in | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/Makefile.am b/Makefile.am index d9ee690..e353377 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,3 +17,9 @@ check: rm -Rf $(top_srcdir)/bin/TWTestData cd $(top_srcdir)/src/test-harness && perl ./twtest.pl cd $(top_srcdir)/bin && ./twtest all + +test: check + +.PHONY: targets +targets: + @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs diff --git a/Makefile.in b/Makefile.in index 0a11cca..bdfa8ff 100644 --- a/Makefile.in +++ b/Makefile.in @@ -813,6 +813,13 @@ check: cd $(top_srcdir)/src/test-harness && perl ./twtest.pl cd $(top_srcdir)/bin && ./twtest all +test: check + +.PHONY: targets +targets: + @$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make dat\ +a base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: