From 2a4b7f4cd36aadd3448a303e6bcf1a703ad575d8 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Wed, 20 May 2026 17:21:49 -0400 Subject: cli cost: print more information --- Makefile | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 624e561..8e573aa 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3