diff --git a/Makefile b/Makefile index d2fc48b..4cd569f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -TARGETS := $(shell ls scripts) +TARGETS := $(shell ls scripts|grep -ve "^util-") LOCAL_TARGETS := $(addprefix local-,$(TARGETS)) .dapper: @@ -18,4 +18,8 @@ $(LOCAL_TARGETS): local-%: .dapper .DEFAULT_GOAL := default -.PHONY: $(TARGETS) \ No newline at end of file +.PHONY: $(list TARGETS) +list: + @LC_ALL=C $(MAKE) -pRrq -f $(firstword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$' +# IMPORTANT: The line above must be indented by (at least one) +# *actual TAB character* - *spaces* do *not* work. \ No newline at end of file