-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (20 loc) · 797 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
.PHONY: help lint
.DEFAULT_GOAL := help
SHELL := /bin/bash
help: ## show target summary
@grep -E '^\S+:.* ## .+$$' $(MAKEFILE_LIST) | sed 's/##/#/' | while IFS='#' read spec help; do \
tgt=$${spec%%:*}; \
printf "\n%s: %s\n" "$$tgt" "$$help"; \
awk -F ': ' -v TGT="$$tgt" '$$1 == TGT && $$2 ~ "=" { print $$2 }' $(MAKEFILE_LIST) | \
while IFS='#' read var help; do \
printf " %s :%s\n" "$$var" "$$help"; \
done \
done
.pip: requirements/base.txt ## install dependencies
python3 -m pip install -t .pip -r requirements/base.txt -r requirements/cli.txt
touch .pip
test: ## run test suite
PYTHONPATH=.:.pip python3 -m pytest tests
build: Dockerfile Dockerfile.jq xibbaz ## build docker images
docker build -t xibbaz .
docker build -t xibbaz:jq -f Dockerfile.jq .