Build process cleanup.
This commit is contained in:
parent
8b28228326
commit
e552416673
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
@ -0,0 +1 @@
|
||||||
|
build/
|
8
Makefile
8
Makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: all build lint
|
.PHONY: all build lint clean
|
||||||
|
|
||||||
all: lint build
|
all: lint build
|
||||||
|
|
||||||
|
@ -6,6 +6,8 @@ lint:
|
||||||
golint ./...
|
golint ./...
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
mkdir -p build/
|
||||||
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags '-w' -o build/gpio-webhook-server ./cmd/server
|
||||||
|
|
||||||
|
clean:
|
||||||
rm -rf build/
|
rm -rf build/
|
||||||
mkdir build/
|
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/gpio-webhook-server ./cmd/server
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user