mirror of
https://github.com/jimeh/cloudflare-dyndns.git
synced 2026-02-19 10:56:42 +00:00
32 lines
609 B
Makefile
32 lines
609 B
Makefile
DEV_DEPS = github.com/kardianos/govendor \
|
|
github.com/vektra/mockery/.../ \
|
|
|
|
BIN_PATH = ./bin/cloudflare-dyndns
|
|
|
|
test: dev-deps
|
|
@govendor test +local +program
|
|
|
|
install: dev-deps
|
|
@govendor install +local +program
|
|
|
|
build:
|
|
mkdir -p bin && go build -o $(BIN_PATH)
|
|
|
|
run: build
|
|
$(BIN_PATH)
|
|
|
|
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 install build run fetch-vendor install-vendor dev-deps \
|
|
update-dev-deps
|