From: j8takagi Date: Sat, 16 Feb 2019 02:39:39 +0000 (+0900) Subject: Makefileにversionターゲットを追加 X-Git-Tag: 0.2p16~2 X-Git-Url: https://j8takagi.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1b5d24af0e79712291bd14b74a44d441b091070;p=autotest_mk.git Makefileにversionターゲットを追加 --- diff --git a/Makefile b/Makefile index bd35b91..f934d91 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ VERSIONGITREF := $(shell $(GIT) show-ref -s --tags $(VERSION)) MASTERGITREF := $(shell $(GIT) show-ref -s refs/heads/master) -.PHONY: docall gittag +.PHONY: docall gittag version doc: $(MAKE) -C doc base @@ -19,3 +19,6 @@ docall: gittag: if test `$(GIT) status -s | $(WC) -l` -gt 0; then $(ECHO) "Error: commit, first."; exit 1; fi; if test "$(VERSIONGITREF)" != "$(MASTERGITREF)"; then $(GIT) tag $(VERSION); fi + +version: VERSION + @$(ECHO) "YACASL2 Version: $(VERSION)"