-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (34 loc) · 1.51 KB
/
Makefile
File metadata and controls
49 lines (34 loc) · 1.51 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
.PHONY: clean deps build folders tests append create delete store concur-append concur-create concur-delete concur-store gmail plot
clean:
go clean -i ./...
deps:
go get -t ./...
build: folders tests plot
folders:
if [ ! -d "results" ]; then mkdir results; fi
if [ ! -d "private" ]; then mkdir private; fi
chmod 0700 private
tests: append create delete store concur-append concur-create concur-delete concur-store gmail
append:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-append.go
create:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-create.go
delete:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-delete.go
store:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-store.go
concur-append:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-append-concurrent.go
concur-create:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-create-concurrent.go
concur-delete:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-delete-concurrent.go
concur-store:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-store-concurrent.go
gmail:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-append-gmail.go
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-create-gmail.go
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-delete-gmail.go
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' test-store-gmail.go
plot:
CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' plot-results.go