-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (24 loc) · 936 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
RUN = pipenv run
setup: ## Prepare your local workspace
pipenv install
validate: ## Validate your configuration files
@echo Note: This was not functional last time tested. Please ignore errors...
$(RUN) octodns-validate --config-file config.yaml
@echo Config files successfully validated!
dry-run: ## Dry-run DNS record update (SAFE)
@$(RUN) octodns-sync --config-file config.yaml
run: check ## Run DNS record update (!!!)
$(RUN) octodns-sync --config-file config.yaml --doit
%:
@true
.PHONY: help
check: # A sanity check
@echo Warning: "Warning: This is a destructive action! Continue? [Y/n]"
@read line; if [ $$line = "n" ]; then echo aborting; exit 1 ; fi
help:
@echo 'Usage: make <command>'
@echo
@echo 'where <command> is one of the following:'
@echo
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
.DEFAULT_GOAL := help