projects
/
autotest_mk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e880036
)
Makefileにversionターゲットを追加
author
j8takagi
<j8takagi@nifty.com>
Sat, 16 Feb 2019 02:39:39 +0000
(11:39 +0900)
committer
j8takagi
<j8takagi@nifty.com>
Sat, 16 Feb 2019 02:39:39 +0000
(11:39 +0900)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
bd35b91
..
f934d91
100644
(file)
--- 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)"