-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (29 loc) · 886 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
.DEFAULT_GOAL := help
SHELL := /usr/bin/env bash
MAKEFLAGS += --no-print-directory
.PHONY: adlist
adlist: ## Build container
@echo "[INFO] Generating new adlist"
@python adlist.py
@echo ""
.PHONY: run
run: ## Run blocky container detached
@echo "[INFO] Run blocky container..."
./scripts/run_blocky.sh
.PHONY: test
test: run ## Run blocky and test
@echo "[INFO] Run test"
./scripts/test.sh
.PHONY: clean
clean: ## Clean cached files and running containers
docker rm --force blocky
shopt -s globstar
rm --recursive --force --verbose \
**/.venv \
**/__pycache__ \
**/.pytest_cache \
**/.pytype \
**/.mypy_cache
.PHONY: help
help: ## Makefile Help Page
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n\nTargets:\n"} /^[\/\%a-zA-Z_-]+:.*?##/ { printf " \033[36m%-21s\033[0m %s\n", $$1, $$2 }' $(MAKEFILE_LIST) 2>/dev/null