aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-14 17:08:57 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-14 17:08:57 -0400
commit28a5aa8c8e7a61dbf06a2cd72ea1bfdee8e67ba6 (patch)
treee01376695417bb6ba1bde4f33c3c74405ae393f6 /Makefile
parent8b39d27eea85691cc45e7d6798060e110e627806 (diff)
downloadlulu-28a5aa8c8e7a61dbf06a2cd72ea1bfdee8e67ba6.zip
cli: test cover-dimensions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c254292..da99711 100644
--- a/Makefile
+++ b/Makefile
@@ -7,14 +7,22 @@ all: build lulu
build: ${SRC} ${GEN}
go build
-${GEN}: ${SRC}
- go generate
+testcli: lulu cmd/lulu/test $(wildcard cmd/lulu/tests/*) $(wildcard cmd/lulu/testdata/*)
+ $(eval PATH=$(shell pwd):${PATH})
+ cd cmd/lulu && ./test
-lulu: ${SRC} $(wildcard cmd/lulu/*.go)
+${GEN}: .gen
+
+.gen: ${SRC}
+ go generate && touch $@
+
+lulu: ${SRC} ${GEN} $(wildcard cmd/lulu/*.go)
go build ./cmd/$@
spec.yml:
curl -L -o $@ 'https://api.lulu.com/api-docs/openapi-specs/openapi_public.yml'
clean:
- rm -f ${GEN} ${BIN}
+ cat .gitignore | xargs -I{} sh -c "rm -rf ./{}"
+
+.PHONY: testcli