X-Git-Url: http://j8takagi.net/cgi-bin/gitweb.cgi?p=YACASL2.git;a=blobdiff_plain;f=Makefile;h=e88b56faad67ae6d4634227cf62bb20bba5a3662;hp=3562d839b974803a8002f4abc2c276b17f17a652;hb=1866f147802418826c9386c755a9d6ba1d5cff89;hpb=c0dfd8c48c50bf77ad064f02ecfb01b18d64c7f1 diff --git a/Makefile b/Makefile index 3562d83..e88b56f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all build gtags \ +.PHONY: all srcall gtags \ check valgrind \ doc alldoc doc_inner \ install uninstall \ @@ -6,10 +6,8 @@ clean src-clean gtags-clean \ test-clean doc-clean doc_inner-clean -CMD := casl2 comet2 dumpword casl2rev - CAT := cat -CP := cp +CP := cp -v ECHO := /bin/echo EXPR := expr GIT := git @@ -31,16 +29,18 @@ VERSIONGITREF := $(shell $(GIT) show-ref -s --tags $(VERSION)) MASTERGITREF := $(shell $(GIT) show-ref -s refs/heads/master) -VERSIONFILES = include/version.h \ +VERSIONFILES := include/version.h \ test/system/casl2_opt/opt_v/0.txt \ test/system/comet2_opt/opt_v/0.txt \ test/system/dumpword/opt_v/0.txt +CMDFILES := casl2 comet2 dumpword casl2rev comet2monitor + all: build INSTALL gtags -build: +build: version $(MAKE) -C src all - $(CP) $(addprefix src/,$(CMD)) ./ + @(for f in $(CMDFILES); do if test ! -e $$f -o src/$$f -nt $$f; then $(CP) src/$$f $$f; fi; done) gtags: $(if $(strip $(shell $(WHICH) $(GTAGS))),$(GTAGS),@$(ECHO) '$(GTAGS): not found') @@ -60,6 +60,12 @@ doc_inner: check: $(MAKE) -sC test/system +smoke: + $(MAKE) -sC test/system smoke + +smoke-valgrind: + $(MAKE) -sC test/system smoke-valgrind + valgrind: $(MAKE) -sC test/system valgrind