X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=e9e6678c0264f7925f409977b1708668b56b79d4;hb=5b57b6588ef89ac321cfb5df8ef35396562890e4;hp=8bd9f1ad71c1994ad7acdb7f7aff582316fbc63e;hpb=d8ebef3f5afa40c90d4919b82c38067933d617aa;p=YACASL2.git 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