Add a 'targets' make target to list make targets. Also add a 'test' target as an alias of 'check'.
This commit is contained in:
parent
02dd677d71
commit
5a34e6f48c
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue