~evanj/cms

ref: 515c5fd9b9df1ff4652d7ce3e5b2f7df58ee5b85 cms/makefile -rw-r--r-- 413 bytes
515c5fd9Evan M Jones Feat(content search): Pagination for content search complete. Fix up 1 year, 3 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