~evanj/cms

ref: test/perPage/after cms/makefile -rw-r--r-- 413 bytes
41bddf09Evan M Jones WIP(perPage/after): Testing to see if this is viable. 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=cms
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