Skip to content

Commit 1902d92

Browse files
committed
chore: updating makefile
1 parent d2f9c64 commit 1902d92

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
DESTDIR =
22

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+
37
all:
48
python setup.py build
59

610
clean:
11+
# Remove build files
712
@rm -rf docs/_*
813
@rm -rf PSL.egg-info build
914
@find . -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
15+
# Remove previously installed library files if there is any
16+
if [ ${INSTALL_PATH_LEN} -gt 2 ]; then sudo rm -rf $(INSTALL_PATH)/PSL $(INSTALL_PATH)/PSL-1* ; fi
1017

1118
install:
1219
python setup.py install

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy