~evanj/e3

ref: f07259c77881216ff62e998d3125c07041119356 e3/makefile -rw-r--r-- 478 bytes
f07259c7Evan J Fix(cache.go): Don't error out when item is too large for cache. 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
29
include .env
export $(shell sed 's/=.*//' .env)

BIN=e3

all: setup vendor gen build

setup:
	go get git.sr.ht/~evanj/embed/cmd/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)"