From 2334b6cb53c0bdea347da4b369602bdd8cf6fbbd Mon Sep 17 00:00:00 2001 From: j8takagi Date: Fri, 6 Jun 2014 17:36:14 +0900 Subject: [PATCH] =?utf8?q?Makefile=E3=81=AE=E7=B4=B0=E3=81=8B=E3=81=84?= =?utf8?q?=E8=A8=98=E8=BF=B0=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8bd9f1a..e9e6678 100644 --- a/Makefile +++ b/Makefile @@ -11,13 +11,14 @@ CMD := casl2 comet2 dumpword CAT := cat CP := cp ECHO := /bin/echo +EXPR := expr GIT := git GREP := grep GTAGS := gtags INSTALL := install SED := sed +WC := wc WHICH := which -EXPR := expr XARGS := xargs prefix ?= ~ @@ -73,7 +74,7 @@ $(VERSIONFILES): VERSION @$(SED) -e "s/@@VERSION@@/$(VERSION)/g" $@.version >$@ 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 + 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 distclean: cmd-clean src-distclean gtags-clean version-clean clean -- 2.18.0