From a1b5d24af0e79712291bd14b74a44d441b091070 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Sat, 16 Feb 2019 11:39:39 +0900 Subject: [PATCH] =?utf8?q?Makefile=E3=81=ABversion=E3=82=BF=E3=83=BC?= =?utf8?q?=E3=82=B2=E3=83=83=E3=83=88=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)" -- 2.18.0