forked from chirpstack/chirpstack-packet-multiplexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (24 loc) · 693 Bytes
/
Makefile
File metadata and controls
31 lines (24 loc) · 693 Bytes
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
.PHONY: build test dist snapshot dev-requirements requirements
VERSION := $(shell git describe --always |sed -e "s/^v//")
build:
mkdir -p build
go build -ldflags "-s -w -X main.version=$(VERSION)" -o build/chirpstack-packet-multiplexer cmd/chirpstack-packet-multiplexer/main.go
clean:
rm -rf build
rm -rf dist
rm -rf docs/public
test:
go vet ./...
go test -v ./...
dist:
goreleaser
mkdir -p dist/upload/tar
mkdir -p dist/upload/deb
mv dist/*.tar.gz dist/upload/tar
mv dist/*.deb dist/upload/deb
snapshot:
goreleaser --snapshot
dev-requirements:
go install golang.org/x/tools/cmd/stringer
go install github.com/goreleaser/goreleaser
go install github.com/goreleaser/nfpm