aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 7914f12091cf87b5142f361462dfc6f37683972a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
GEN = $(addsuffix _gen.go, cover interior pkgid ship status)
TEST = $(wildcard *_test.go)
SRC = $(filter-out ${GEN} ${TEST}, $(wildcard *.go))

build: ${SRC} ${GEN}
	go build

${GEN}: ${SRC}
	go generate

spec.yml:
	curl -L -o $@ 'https://api.lulu.com/api-docs/openapi-specs/openapi_public.yml'

clean:
	rm -f ${GEN}

.PHONY: build clean