# retoor <retoor@molodetz.nl>

PYTHON = python3
PIP = pip3

.PHONY: all build install clean test

all: build

build:
	$(PYTHON) setup.py build_ext --inplace

install:
	$(PIP) install .

clean:
	rm -rf build/
	rm -rf src/rinja/*.so
	rm -rf src/rinja/__pycache__
	rm -rf tests/__pycache__
	rm -rf rinja.egg-info

test: build
	PYTHONPATH=src $(PYTHON) -m pytest tests
