aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-05-14 11:17:55 -0400
committerSam Anthony <sam@samanthony.xyz>2026-05-14 11:17:55 -0400
commit26ec677a2bee8344675eb3b4afc24b3ae85f512a (patch)
tree3fb9ec63fa923f1f9fadf0cf039eedd20d5d4023 /Makefile
parent0865e2e03651dcc7be91846a6e52125e56bcde31 (diff)
downloadlulu-26ec677a2bee8344675eb3b4afc24b3ae85f512a.zip
cli: validate interior
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 7914f12..c254292 100644
--- a/Makefile
+++ b/Makefile
@@ -2,16 +2,19 @@ GEN = $(addsuffix _gen.go, cover interior pkgid ship status)
TEST = $(wildcard *_test.go)
SRC = $(filter-out ${GEN} ${TEST}, $(wildcard *.go))
+all: build lulu
+
build: ${SRC} ${GEN}
go build
${GEN}: ${SRC}
go generate
+lulu: ${SRC} $(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}
-
-.PHONY: build clean
+ rm -f ${GEN} ${BIN}