~evanj/evanjon.es

ref: tmp evanjon.es/makefile -rw-r--r-- 420 bytes
f3f315a7Evan M Jones Chore(*): Testing deploy. 1 year, 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
BIN=evanjon.es
ENV=`cat .env`

all: setup vendor gen build

setup:
	@go get git.sr.ht/~evanj/embed

vendor: go.mod go.sum
	@go mod tidy
	@go mod vendor

build:
	@clear
	@go build -ldflags='-s -w' -o $(BIN)

gen: 
	@go generate ./...

test: 
	@go test ./...

run: gen build
	@clear
	@env $(ENV) ./$(BIN)

dev:
	@find * -not -name '*_embed.go' | grep -E '*.(go|js|css|html)' | entr -r make run