File tree Expand file tree Collapse file tree 8 files changed +593
-148
lines changed Expand file tree Collapse file tree 8 files changed +593
-148
lines changed Original file line number Diff line number Diff line change 4
4
* .tokens
5
5
cover.html
6
6
cover.out
7
+ .build
Original file line number Diff line number Diff line change 1
1
# Directory containing the Makefile.
2
- PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST ) ) ) )
3
-
4
2
export PATH := $(GOBIN ) :$(PATH )
5
3
6
- BENCH_FLAGS ?= -cpuprofile=cpu.pprof -memprofile=mem.pprof -benchmem
7
-
8
- # Directories that we want to test and track coverage for.
9
- TEST_DIRS = .
10
-
11
4
.PHONY : all
12
5
all : lint cover
13
6
23
16
cover :
24
17
@go test -coverprofile=cover.out -coverpkg=./... ./... \
25
18
&& go tool cover -html=cover.out -o cover.html
19
+
20
+ .PHONY : build
21
+ build : go-build
22
+
23
+ .PHONY : go-build
24
+ go-build :
25
+ @cd cmd/raml && go build -o ../../.build/raml
26
+
27
+ .PHONY : install
28
+ install : go-install
29
+
30
+ .PHONY : go-install
31
+ go-install :
32
+ @cd cmd/raml && \
33
+ go install -v ./... \
34
+ && echo ` go list -f ' {{.Module.Path}}' ` has been installed to ` go list -f ' {{.Target}}' ` && true
You can’t perform that action at this time.
0 commit comments