From 6c6960b1dcf3116da04f39233d889b6ee04384c0 Mon Sep 17 00:00:00 2001 From: j8takagi Date: Thu, 25 Jul 2013 08:58:18 +0900 Subject: [PATCH] =?utf8?q?make=20gittag=E3=81=A7=E3=80=81VERSION=E3=83=95?= =?utf8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E8=A8=98=E8=BC=89=E3=81=AE=E3=83=90?= =?utf8?q?=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E3=81=8C=E3=82=BF=E3=82=B0?= =?utf8?q?=E3=81=A8=E3=81=97=E3=81=A6=E6=9C=AA=E7=99=BB=E9=8C=B2=E3=81=AE?= =?utf8?q?=E5=A0=B4=E5=90=88=E3=81=A0=E3=81=91git=20tag=E3=82=92=E5=AE=9F?= =?utf8?q?=E8=A1=8C=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E4=BB=95=E6=A7=98?= =?utf8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ca55acb..1730124 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ CAT := cat CP := cp ECHO := echo GITTAG := git tag +GREP := grep GTAGS := gtags INSTALL := install SED := sed @@ -21,7 +22,10 @@ prefix ?= ~ bindir ?= $(prefix)/bin VERSION = $(shell $(CAT) VERSION) -VERSIONFILES = include/package.h test/system/casl2/opt_v/0.txt test/system/comet2/opt_v/0.txt test/system/dumpword/opt_v/0.txt +VERSIONFILES = include/package.h \ + test/system/casl2/opt_v/0.txt \ + test/system/comet2/opt_v/0.txt \ + test/system/dumpword/opt_v/0.txt all: build doc gtags @@ -62,7 +66,7 @@ $(VERSIONFILES): VERSION @$(SED) -e "s/@@VERSION@@/$(VERSION)/g" $@.version >$@ gittag: VERSION - $(GITTAG) $(VERSION) + $(GITTAG) | $(GREP) $(VERSION) || $(GITTAG) $(VERSION) distclean: cmd-clean src-distclean gtags-clean version-clean clean -- 2.18.0