Add Makefile target to build project

This commit is contained in:
eikendev 2021-01-05 00:28:10 +01:00
parent f30ee50e99
commit 938aa0448c
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
2 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,7 +1,7 @@
app
*.db *.db
config.yml config.yml
debugging/ debugging/
pushbits
### Go ### Go
# Binaries for programs and plugins # Binaries for programs and plugins

View file

@ -1,5 +1,9 @@
IMAGE := eikendev/pushbits IMAGE := eikendev/pushbits
.PHONY: build
build:
go build -ldflags="-w -s" -o app .
.PHONY: test .PHONY: test
test: test:
stdout=$$(gofmt -l . 2>&1); \ stdout=$$(gofmt -l . 2>&1); \