This repository has been archived on 2023-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
autosnooze/Makefile

32 lines
606 B
Makefile
Raw Permalink Normal View History

2022-12-16 19:44:11 -08:00
# 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