We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60d0e85 commit 966d0daCopy full SHA for 966d0da
Makefile
@@ -1,12 +1,18 @@
1
DESTDIR =
2
3
+# Find library installation path
4
+INSTALL_PATH = $(patsubst Location:,,$(shell pip show PSL | grep Location))
5
+INSTALL_PATH_LEN = $(shell echo $(INSTALL_PATH) | wc -c)
6
+
7
all:
8
python setup.py build
9
10
clean:
11
@rm -rf docs/_*
12
@rm -rf PSL.egg-info build
13
@find . -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
14
+ # Remove previously installed library files
15
+ if [ ${INSTALL_PATH_LEN} -gt 2 ]; then sudo rm -rf $(INSTALL_PATH)/PSL $(INSTALL_PATH)/PSL-1* ; fi
16
17
install:
18
python setup.py install
0 commit comments