mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
38 lines
745 B
Makefile
38 lines
745 B
Makefile
DEV_DEPS = github.com/kardianos/govendor \
|
|
github.com/vektra/mockery/.../ \
|
|
github.com/mailru/easyjson/... \
|
|
github.com/jteeuwen/go-bindata/...
|
|
|
|
test: dev-deps
|
|
@govendor test +local +program
|
|
|
|
generate: dev-deps
|
|
@govendor generate +local +program
|
|
|
|
generate-web:
|
|
cd web && go generate
|
|
|
|
install: dev-deps
|
|
@govendor install +local +program
|
|
|
|
build:
|
|
mkdir -p bin && go build -o bin/ozuio
|
|
|
|
run: build
|
|
./bin/ozuio
|
|
|
|
fetch-vendor: dev-deps
|
|
@govendor fetch +external +missing
|
|
|
|
install-vendor: dev-deps
|
|
@govendor install +vendor
|
|
|
|
dev-deps:
|
|
@$(foreach DEP,$(DEV_DEPS),go get $(DEP);)
|
|
|
|
update-dev-deps:
|
|
@$(foreach DEP,$(DEV_DEPS),go get -u $(DEP);)
|
|
|
|
.PHONY: test generate generate-web install build run install-vendor dev-deps \
|
|
update-dev-deps
|