mirror of
https://github.com/pushbits/server.git
synced 2025-06-19 02:51:59 +02:00
Add Makefile target to build project
This commit is contained in:
parent
f30ee50e99
commit
938aa0448c
2 changed files with 5 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -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
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -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); \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue