buried_point.so: force
	python3 setup.py build

clean:
	-rm -rf build buried_point.so *.pyc *~

install:
	ROOT= ; \
	if [ -n "$$DESTDIR" ]; then ROOT="--root $$DESTDIR"; fi; \
	python3 setup.py install --skip-build $$ROOT --install-lib=/usr/share/system-config-printer/

test_install:
	ROOT= ; \
	if [ -n "$$DESTDIR" ]; then ROOT="--root $$DESTDIR"; fi; \
	python3 setup.py install --skip-build $$ROOT


.PHONY: clean force install test_install