~evanj/e3

ref: 14b25a41e90d66d710fff17beb5728dbaf017fb6 e3/makefile -rw-r--r-- 476 bytes
14b25a41Evan M Jones Fix(builds): Remove master hook. Didn't work due to ref checkout. 1 year, 7 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
29
include .env
export $(shell sed 's/=.*//' .env)

BIN=e3

all: builddeps vendor gen build

builddeps:
	go get git.sr.ht/~evanj/embed

vendor: go.mod go.sum
	go mod vendor

build:
	go build -o $(BIN)

gen: 
	go generate ./...

test: 
	go test -count 1 ./...

dev: dev-server dev-client

dev-client:
	find . -type f -name '*.html' | entr -r sh -c "make gen"

dev-server:
	find . -type f -name '*.go' | entr -r sh -c "clear && make build && ./$(BIN)"