forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (44 loc) · 1.4 KB
/
Makefile
File metadata and controls
57 lines (44 loc) · 1.4 KB
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
54
55
56
57
all: vet test
get:
go get -t -d ./...
GEN_MESSAGES = go run gen/generate-messages/main.go
GEN_COMPONENTS = go run gen/generate-components/main.go
GEN_FIELDS = go run gen/generate-fields/main.go
FIXVERS = FIX40 FIX41 FIX42 FIX43 FIX44 FIX50 FIX50SP1 FIX50SP2 FIXT11
generate:
$(GEN_FIELDS) $(foreach vers, $(FIXVERS), spec/$(vers).xml)
$(foreach vers, $(FIXVERS), $(GEN_COMPONENTS) spec/$(vers).xml;)
$(foreach vers, $(FIXVERS), $(GEN_MESSAGES) spec/$(vers).xml;)
fmt:
go fmt ./...
vet:
go vet ./...
lint:
go get github.com/golang/lint/golint
golint .
test: get
go test -v -cover . ./datadictionary
_build_all: get
go build -v ./...
build_accept: get
cd _test; go build -o echo_server
build: _build_all build_accept
fix40:
cd _test; ./runat.sh $@.cfg 5001 "definitions/server/$@/*.def"
fix41:
cd _test; ./runat.sh $@.cfg 5002 "definitions/server/$@/*.def"
fix42:
cd _test; ./runat.sh $@.cfg 5003 "definitions/server/$@/*.def"
fix43:
cd _test; ./runat.sh $@.cfg 5004 "definitions/server/$@/*.def"
fix44:
cd _test; ./runat.sh $@.cfg 5005 "definitions/server/$@/*.def"
fix50:
cd _test; ./runat.sh $@.cfg 5006 "definitions/server/$@/*.def"
fix50sp1:
cd _test; ./runat.sh $@.cfg 5007 "definitions/server/$@/*.def"
fix50sp2:
cd _test; ./runat.sh $@.cfg 5008 "definitions/server/$@/*.def"
ACCEPT_SUITE=fix40 fix41 fix42 fix43 fix44 fix50 fix50sp1 fix50sp2
accept: $(ACCEPT_SUITE)
.PHONY: test $(ACCEPT_SUITE)