diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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} |