# top-level Makefile 

usage: short-help

### local install in editable mode for development
dev: uninstall 
	pip install --upgrade -e .[dev]

### install to the local environment from the source directory
install: 
	pip install --upgrade .

### remove module from the local python environment
uninstall: 
	pip install -U pip setuptools wheel flit
	pip uninstall -yqq $(module)

### remove all build, test, coverage and Python artifacts
clean: 
	for clean in $(call included,clean); do ${MAKE} $$clean; done
	rm -f iso/vmware-rescue.iso

iso/vmware-rescue.iso: iso/systemrescue-11.01-amd64.iso
	exec docker run -it --rm -e ISO_PASSWORD --mount type=bind,src=$(PWD)/iso,dst=/tmp/iso debian:12 /tmp/iso/customize

iso: iso/vmware-rescue.iso
	cp $< $(ISO_DIR)/vmware-rescue.iso

include $(wildcard make/*.mk)
