--- 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)
+