32 lines
606 B
Makefile
32 lines
606 B
Makefile
|
# Build the application binary and static files.
|
||
|
# This should be called from within the dev container.
|
||
|
.PHONY: build
|
||
|
build:
|
||
|
rm -f autosnooze
|
||
|
go build \
|
||
|
-mod=vendor \
|
||
|
-o autosnooze \
|
||
|
cmd/autosnooze/main.go
|
||
|
|
||
|
.PHONY: build-windows
|
||
|
build-windows:
|
||
|
rm -f autosnooze.exe
|
||
|
GOOS=windows go build \
|
||
|
-mod=vendor \
|
||
|
-o autosnooze.exe \
|
||
|
cmd/autosnooze/main.go
|
||
|
|
||
|
.PHONY: build-arm
|
||
|
build-arm:
|
||
|
rm -f autosnooze-arm
|
||
|
GOARCH=arm64 go build \
|
||
|
-mod=vendor \
|
||
|
-o autosnooze-arm \
|
||
|
cmd/autosnooze/main.go
|
||
|
|
||
|
.PHONY: run
|
||
|
run:
|
||
|
go run \
|
||
|
-mod=vendor \
|
||
|
cmd/autosnooze/main.go /workspaces/autosnooze/config.yaml
|