summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 29e5762a12c044e9dfa5bead2c86fe7e1d5e1503 (plain) (blame)
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
30
31
32
# SPDX-License-Identifier: ISC
# Copyright © 2022 siddharth ravikumar <s@ricketyspace.net>

MOD=ricketyspace.net/peach
PKGS=${MOD}/cache ${MOD}/client ${MOD}/nws ${MOD}/photon
CSS=static/peach.min.css

peach: vet fix fmt ${CSS}
	go build ${BUILD_OPTS}

fmt:
	go fmt ${MOD} ${PKGS}
.PHONY: fmt

fix:
	go fix ${MOD} ${PKGS}
.PHONY: fix

vet:
	go vet ${MOD} ${PKGS}
.PHONY: vet

test:
	go test ${PKGS} ${ARGS}
.PHONY: test

${CSS}: static/peach.css
	./bin/minify

clean:
	go clean
.PHONY: clean