-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
49 lines (31 loc) · 881 Bytes
/
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
GOPATH:=$(shell go env GOPATH)
default: build
# Running and testing
.PHONY: run
run: $(GOPATH)/bin/monobuild
@$(GOPATH)/bin/monobuild
test: test test-rust
test-go: build unit-test e2e-test
test-rust: unit-test-rust e2e-test-rust
e2e-test:
@sh test/e2e.sh
e2e-test-rust: build-rust
@sh test/e2e.sh rust
unit-test:
@go test ./...
unit-test-rust:
cd rs && cargo test
# Building
build: install $(GOPATH)/bin/monobuild
build-rust:
cd rs && cargo build
$(GOPATH)/bin/monobuild: ./monobuild.go cmd/*.go diff/*.go graph/*.go manifests/*.go set/*.go cli/*.go
@go install github.com/charypar/monobuild
# Dependencies
install: \
$(GOPATH)/src/github.com/spf13/cobra \
$(GOPATH)/src/github.com/bmatcuk/doublestar
$(GOPATH)/src/github.com/spf13/cobra:
go get github.com/spf13/cobra
$(GOPATH)/src/github.com/bmatcuk/doublestar:
go get github.com/bmatcuk/doublestar