~evanj/cms

ref: 7fc5d7258891c1c58ba07d1e9035517327be7a19 cms/makefile -rw-r--r-- 421 bytes
7fc5d725Evan M Jones WIP(*): Project init. 11 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
include .env
export $(shell sed 's/=.*//' .env)

BIN=cms

all: vendor gen build

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)"