From 184085c20db9e92cc3a0b0fc9a0f6f74f465c41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sat, 12 Sep 2020 01:06:02 +0200 Subject: [PATCH] makefile: add --- Makefile | 35 +++++++++++++++++++++++++++++++++++ clean.sh | 7 +++++++ 2 files changed, 42 insertions(+) create mode 100644 Makefile create mode 100755 clean.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b095cb3 --- /dev/null +++ b/Makefile @@ -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 diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..779ab86 --- /dev/null +++ b/clean.sh @@ -0,0 +1,7 @@ +#!/bin/sh + + +rm -drv build +rm -drv dist +find . -name "*.egg*" -exec rm -drv {} \; +find . -name "*__pycache__*" -exec rm -drv {} \;