Fumitoshi Ukai | 119dc91 | 2015-03-30 16:52:41 +0900 | [diff] [blame] | 1 | GOSRC = $(wildcard *.go) |
2 | |||||
Shinichiro Hamaji | 5ca0ecd | 2015-04-30 18:30:56 +0900 | [diff] [blame] | 3 | all: kati go_test para |
Fumitoshi Ukai | 119dc91 | 2015-03-30 16:52:41 +0900 | [diff] [blame] | 4 | |
5 | kati: $(GOSRC) | ||||
Shinichiro Hamaji | 5ca0ecd | 2015-04-30 18:30:56 +0900 | [diff] [blame] | 6 | env $(shell go env) go build -o $@ *.go |
Fumitoshi Ukai | 119dc91 | 2015-03-30 16:52:41 +0900 | [diff] [blame] | 7 | |
Shinichiro Hamaji | cedc5c8 | 2015-05-13 17:03:20 +0900 | [diff] [blame^] | 8 | go_test: $(GOSRC) para |
Shinichiro Hamaji | 5ca0ecd | 2015-04-30 18:30:56 +0900 | [diff] [blame] | 9 | env $(shell go env) go test *.go |
10 | |||||
11 | para: para.cc | ||||
Shinichiro Hamaji | cedc5c8 | 2015-05-13 17:03:20 +0900 | [diff] [blame^] | 12 | $(CXX) -std=c++11 -g -O -W -Wall -MMD -o $@ $< |
Fumitoshi Ukai | e520f26 | 2015-03-31 17:27:03 +0900 | [diff] [blame] | 13 | |
Shinichiro Hamaji | 7744bd6 | 2015-03-31 23:02:38 +0900 | [diff] [blame] | 14 | test: all |
Fumitoshi Ukai | 119dc91 | 2015-03-30 16:52:41 +0900 | [diff] [blame] | 15 | ruby runtest.rb |
16 | |||||
Shinichiro Hamaji | bbf6a71 | 2015-03-30 17:22:38 +0900 | [diff] [blame] | 17 | clean: |
18 | rm -rf out kati | ||||
19 | |||||
Fumitoshi Ukai | 119dc91 | 2015-03-30 16:52:41 +0900 | [diff] [blame] | 20 | .PHONY: test |
Shinichiro Hamaji | 5ca0ecd | 2015-04-30 18:30:56 +0900 | [diff] [blame] | 21 | |
22 | -include *.d |