default_target: compile
.PHONY: clean_compile clean compile install

clean_compile:
	@echo "Removing compiled C/C++ files..."
	find python/ -type f -name "*.o" -delete
	find python/ -type f -name "*.so" -delete
	find python/ -type f -name "*.c" -delete
	find python/ -type f -name "*.pyd" -delete
	find python/ -type f -name "*.cpp" -not -path "**/cpp/*" -delete
	find python/ -type f -name "*.html" -delete

clean: clean_compile

compile:
	@echo "Compiling Cython code..."
	cd python/ && python setup.py build_ext --inplace

install:
	@echo "Installing package..."
	python -m pip install python/
