diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2026-05-20 17:21:49 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2026-05-20 17:34:47 -0400 |
| commit | 2a4b7f4cd36aadd3448a303e6bcf1a703ad575d8 (patch) | |
| tree | 4272288e8075154bb706663a3b12b06fe264f7a7 /Makefile | |
| parent | 7c33cabfb815ab46e777ea61748e1a4bf5830a22 (diff) | |
| download | lulu-2a4b7f4cd36aadd3448a303e6bcf1a703ad575d8.zip | |
cli cost: print more information
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 29 |
1 files changed, 20 insertions, 9 deletions
@@ -4,25 +4,36 @@ SRC = $(filter-out ${GEN} ${TEST}, $(wildcard *.go)) all: build lulu -build: ${SRC} ${GEN} - go build +test: testpkg testcli -testcli: lulu - $(eval PATH=$(shell pwd):${PATH}) - cd cmd/lulu && ./test +build: .build +.build: ${SRC} ${GEN} + go build + touch $@ ${GEN}: .gen - .gen: ${SRC} - go generate && touch $@ + go generate + touch $@ lulu: ${SRC} ${GEN} $(wildcard cmd/lulu/*.go) go build ./cmd/$@ +testpkg: .testpkg +.testpkg: ${SRC} ${GEN} ${TEST} + go test ./... + touch $@ + +testcli: .testcli +.testcli: lulu $(wildcard $(addprefix cmd/lulu/, test tests/* testdata/* testchecks/*)) + $(eval PATH=$(shell pwd):${PATH}) + cd cmd/lulu && ./test + touch $@ + spec.yml: curl -L -o $@ 'https://api.lulu.com/api-docs/openapi-specs/openapi_public.yml' clean: - rm -rf ${GEN} lulu .gen cmd/lulu/testerr cmd/lulu/testout + rm -rf ${GEN} lulu .build .gen .testpkg .testcli cmd/lulu/testerr cmd/lulu/testout -.PHONY: testcli +.PHONY: all build test testpkg testcli |