mirror of
https://github.com/jimeh/cloudflare-dyndns.git
synced 2026-02-19 10:56:42 +00:00
Initial commit
This commit is contained in:
31
Makefile
Normal file
31
Makefile
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in New Issue
Block a user