-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
43 lines (28 loc) · 928 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
all:
scripts/build.sh
#dist:
# scripts/dist.sh
qa: vet fmt lint test
lint:
go get github.com/golang/lint/golint
$(GOPATH)/bin/golint ./...
fmt:
gofmt -s -w .
clean:
rm -f bin/* || true
rm -rf .gopath || true
test:
go test -v ./...
vet:
go vet ./...
here: build qa
build: deps
go build -o bin/app-presets
deps: version-deps
version-deps: version.go ninjapack/root/opt/ninjablocks/apps/app-presets/package.json
version.go: pkgversion
sed -i.bak "s/\"\([^\"]*\)\"/\"$$(cat pkgversion)\"/" version.go
ninjapack/root/opt/ninjablocks/apps/app-presets/package.json: pkgversion
jq ".version = \"$$(cat pkgversion)\"" < ninjapack/root/opt/ninjablocks/apps/app-presets/package.json > ninjapack/root/opt/ninjablocks/apps/app-presets/package.json.tmp && \
mv ninjapack/root/opt/ninjablocks/apps/app-presets/package.json.tmp ninjapack/root/opt/ninjablocks/apps/app-presets/package.json
.PHONY: all dist clean test