Added a couple of Makefiles to simply build and deploy
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
|
||||
.PHONY: all
|
||||
all: setup build
|
||||
|
||||
.PHONY: setup
|
||||
setup:
|
||||
mkdir -p bin/
|
||||
|
||||
.PHONY: build
|
||||
build:
|
||||
go build -o bin/posti-dm .
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
go run .
|
||||
|
||||
.PHONY: watch
|
||||
watch:
|
||||
find -name '*.go' | entr -r -s 'go run .'
|
||||
|
||||
Reference in New Issue
Block a user