-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (38 loc) · 1.31 KB
/
Makefile
File metadata and controls
52 lines (38 loc) · 1.31 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: all
all: help
help: ## Display this help screen
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
########################
### Build and TEST ###
########################
build: ## Update hosts files
@echo "updating hosts files..."
@python update_hosts_file.py
build-min: ## Update hosts files and minimise output file
@echo "updating minimise hosts file..."
@python update_hosts_file.py -m
build-bb-list: ## Update block list for Blocky(DNS proxy)
@echo "updating slim hosts file..."
@python update_hosts_file.py -m -s -e -o bb_list.txt
build-for-hrs: ## Update files for HRS
@echo "updating hosts files..."
@python update_hosts_file.py -s
@echo "*********** + ***********"
@echo "updating slim hosts file..."
@python update_hosts_file.py -n -nr -m -s -e -o bb_list.txt
test: ## Run unit tests
@echo "running tests..."
@python test_helpers.py
clean: ## Remove junk
@rm -rf __pycache__ *.log
########################
### GIT REMOTE ###
########################
pull: ### Pull from git repository
@echo "pulling changes from git remote"
@git pull origin master
push: ### Push to git repository
@echo "pushing changes to git remote"
@git add .
@git commit -m "update hosts :zap:"
@git push -u origin master