Print supported targets.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Wed, 28 Sep 2011 15:31:56 +0300
changeset 217 fdcf941346bb
parent 216 27e5bda72c38
child 218 92582492ecde
Print supported targets.
Makefile
--- a/Makefile	Wed Sep 28 15:29:23 2011 +0300
+++ b/Makefile	Wed Sep 28 15:31:56 2011 +0300
@@ -8,7 +8,7 @@
 # Disable built in suffix rules.
 .SUFFIXES:
 # Default target.
-.DEFAULT_GOAL = all
+.DEFAULT_GOAL = help
 
 .PHONY: all
 all:
@@ -96,3 +96,13 @@
 
 .PHONY: distclean
 distclean: clean
+
+################################################################
+# Helper target.
+
+.PHONY: help
+help:
+	@echo
+	@echo Supported targets:
+	@sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*=  \1=;p;}' $(MAKEFILE_LIST)
+