forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
53 lines (40 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
all: vet test
clean:
rm -rf gen
generate: clean
mkdir -p gen; cd gen; go run ../cmd/generate-fix/generate-fix.go ../spec/*.xml
generate-dist:
cd ..; go run quickfix/cmd/generate-fix/generate-fix.go quickfix/spec/*.xml
fmt:
go fmt `go list ./... | grep -v quickfix/gen`
vet:
go vet `go list ./... | grep -v quickfix/gen`
lint:
go get github.com/golang/lint/golint
golint .
test:
go test -v -cover . ./datadictionary ./internal
_build_all:
go build -v `go list ./...`
build_accept:
cd _test; go build -o echo_server
build: _build_all build_accept
fix40:
cd _test; ./runat.sh [email protected] 5001 "definitions/server/$@/*.def"
fix41:
cd _test; ./runat.sh [email protected] 5002 "definitions/server/$@/*.def"
fix42:
cd _test; ./runat.sh [email protected] 5003 "definitions/server/$@/*.def"
fix43:
cd _test; ./runat.sh [email protected] 5004 "definitions/server/$@/*.def"
fix44:
cd _test; ./runat.sh [email protected] 5005 "definitions/server/$@/*.def"
fix50:
cd _test; ./runat.sh [email protected] 5006 "definitions/server/$@/*.def"
fix50sp1:
cd _test; ./runat.sh [email protected] 5007 "definitions/server/$@/*.def"
fix50sp2:
cd _test; ./runat.sh [email protected] 5008 "definitions/server/$@/*.def"
ACCEPT_SUITE=fix40 fix41 fix42 fix43 fix44 fix50 fix50sp1 fix50sp2
accept: $(ACCEPT_SUITE)
.PHONY: test $(ACCEPT_SUITE)