forked from Maelkum/gpxgo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
39 lines (38 loc) · 1.18 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
test:
go test ./gpx
gofmt:
gofmt -w ./gpx
goimports:
goimports -w ./gpx
build-generics:
gengen generic/nullable.go string \
| gofmt -r 'NullableGeneric -> NullableString' \
| gofmt -r 'NewNullableGeneric -> NewNullableString' \
> gpx/nullable_string.go
gengen generic/nullable.go int \
| gofmt -r 'NullableGeneric -> NullableInt' \
| gofmt -r 'NewNullableGeneric -> NewNullableInt' \
> gpx/nullable_int.go
gengen generic/nullable.go float64 \
| gofmt -r 'NullableGeneric -> NullableFloat64' \
| gofmt -r 'NewNullableGeneric -> NewNullableFloat64' \
> gpx/nullable_float64.go
gengen generic/nullable.go time.Time \
| gofmt -r 'NullableGeneric -> NullableTime' \
| gofmt -r 'NewNullableGeneric -> NewNullableTime' \
> gpx/nullable_time.go
install:
go install ./gpx
prepare:
go get
clean:
echo "TODO"
ctags:
ctags -R .
lint:
golongfuncs
gometalinter --deadline=60s --disable=interfacer gpx
install-tools:
go get -u github.com/tkrajina/golongfuncs/...
go get -u gopkg.in/alecthomas/gometalinter.v2
gometalinter --install