makefile: add

This commit is contained in:
Maciej Barć 2020-09-12 01:06:02 +02:00
parent cc992227fc
commit 184085c20d
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 42 additions and 0 deletions

35
Makefile Normal file
View File

@ -0,0 +1,35 @@
# TODO: rename binary to euscan-ng
BIN = euscan
.PHONY:
clean
install-user
install-user-test
install-user-web
install
uninstall distclean
clean:
sh clean.sh
install-user:
python setup.py -v install --user
install-user-test:
python setup.py -v install --user test
install-user-web:
python setup.py -v install --user web
install: install-user
uninstall:
pip uninstall -v -y $(BIN)
distclean: uninstall
distclean: clean

7
clean.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
rm -drv build
rm -drv dist
find . -name "*.egg*" -exec rm -drv {} \;
find . -name "*__pycache__*" -exec rm -drv {} \;