aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 3f144ca760d742d374baea7e568bf85ed6903d48 (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)
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