aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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}