21 lines
540 B
Makefile
21 lines
540 B
Makefile
|
MAKESELF:=makeself
|
||
|
LICENSE:=$(shell cat ./license.txt)
|
||
|
VERSION:=$(shell cd src && python -c "import msspec; print(msspec.__version__)")
|
||
|
SETUPFILE:=pymsspec-$(VERSION).setup
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
clean:
|
||
|
@rm -rf *.setup
|
||
|
|
||
|
purge: clean
|
||
|
@echo "Purging all..."
|
||
|
@find ./src -type f -name '*.pyc' -exec rm {} +
|
||
|
@find ./src -type d -name '__pycache__' -exec rm -r {} +
|
||
|
+$(MAKE) -C src/ clean
|
||
|
|
||
|
selfex: purge
|
||
|
@echo "Creating the self-extractible setup program... "
|
||
|
$(MAKESELF) --license "$(LICENSE)" ./src $(SETUPFILE) "Python MsSpec" ./install.sh
|
||
|
|