Dump version info with 'version' target.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 12 Jan 2012 23:24:56 +0200
changeset 108 1f1363141da7
parent 107 4cfb94e11b5d
child 109 5bb58b8d87a7
Dump version info with 'version' target.
Makefile
--- a/Makefile	Thu Jan 12 23:18:00 2012 +0200
+++ b/Makefile	Thu Jan 12 23:24:56 2012 +0200
@@ -89,7 +89,7 @@
 ################################################################
 # Project dirs/files.
 
-BUILD_SCRIPT := $(first-word $(MAKEFILE_LIST))
+BUILD_SCRIPT := $(firstword $(MAKEFILE_LIST))
 
 C5_FILES := $(wildcard *.dict-c5)
 DICT_FILES := $(C5_FILES:.dict-c5=.dict)
@@ -188,7 +188,16 @@
 	$(RST2HTML) $(RST2HTML_FLAGS) --stylesheet=rst.css $*.rst $@
 
 ################################################################
-# Statistics targets.
+# Helpers targets.
+
+.PHONY: help
+help:
+	@echo
+	@echo vmajor=$(vmajor)
+	@echo vminor=$(vminor)
+	@echo
+	@echo Supported targets:
+	@sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*=  \1=;p;}' $(BUILD_SCRIPT)
 
 .PHONY: stat
 stat:
@@ -212,12 +221,3 @@
 	rm -f $(DICTDZ_FILES) $(INDEX_FILES) $(HTML_FILES)
 	rm -rf $(DIST_DIR) $(DISTSRC_DIR) $(DIST_TARBALLS) $(DISTSRC_TARBALLS)
 
-################################################################
-# Helper target.
-
-.PHONY: help
-help:
-	@echo
-	@echo Supported targets:
-	@sed -n -e '/^[[:alnum:]_-]*:/{s=^\(.*\):.*=  \1=;p;}' $(MAKEFILE_LIST)
-