forked from quickfixgo/quickfix
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
55 lines (42 loc) · 1.55 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
54
55
all: vet test
generate:
mkdir -p gen; cd gen; go run ../cmd/generate-fix/generate-fix.go ../spec/*.xml
make generate_maps
generate_maps:
$(if $(shell which stringer-augmented),,$(error "No stringer-augmented in PATH, install from gopaca))
cd enum && stringer-augmented -type `grep type enums.generated.go | awk '{print $$2}' | xargs | sed -e 's/ /,/g'` -sqlfile enums-generated-maps.sql -output enums.generated-reverse.go enums.generated.go
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 ./enum
_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 $@.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)