-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (18 loc) · 614 Bytes
/
Makefile
File metadata and controls
27 lines (18 loc) · 614 Bytes
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
# SHELL specifies the shell used by Make. Bash is used for its array and string manipulation capabilities.
SHELL := /bin/bash
# Check if 'docker-compose' is available, if not, use 'docker compose'.
COMPOSE_CMD := $(if $(shell which docker-compose 2>/dev/null),docker-compose,docker compose)
.PHONY: build
all: run
workdir:
mkdir -p data/
build:
$(COMPOSE_CMD) build --pull
shell: build workdir
$(COMPOSE_CMD) run --rm app bash
run: build workdir
$(COMPOSE_CMD) run --rm app opensanctions run
stop:
$(COMPOSE_CMD) down --remove-orphans
clean:
rm -rf data/datasets build dist .mypy_cache .pytest_cache