.PHONY: dev rebuild html

dev:
	pip install -e . --no-deps --no-build-isolation \
	-Cbuild-dir=build \
	-Ccmake.args="-GNinja" \
	-Ccmake.build-type=RelWithDebInfo
	# _tools.py loads seamsh/libseamsh.so directly (ctypes), bypassing
	# scikit-build's editable redirect. Point it at the build output so
	# `make rebuild` refreshes the loaded library in place.
	ln -sf ../build/libseamsh.so seamsh/libseamsh.so

rebuild:
	cmake --build build

wheel:
	python -mbuild --wheel --no-isolation

html:
	$(MAKE) -C doc html >/dev/null
