Skip to content

Commit 2744a67

Browse files
authored
chore: updated makefile with fullcleanup task (#98)
* chore: updated makefile with fullcleanup task * refactor: updated spaces to tabs
1 parent 93e0a8c commit 2744a67

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

Makefile

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,29 @@ INSTALL_PATH_LEN = $(shell echo $(INSTALL_PATH) | wc -c)
77
all:
88
python3 setup.py build
99

10-
fullclean:
10+
fullcleanup: verifyFiles
1111
# Removes every PSL instance in system. Be careful and check if the following list got all files inside a python folder or related to PSLab
12-
find /usr/* -name "PSL*" | xargs rm -rf
13-
find /usr/* -name "pslab*" | xargs rm -rf
14-
find /opt/* -name "pslab-*" | xargs rm -rf
15-
rm -rf /usr/bin/Experiments /usr/local/bin/Experiments
12+
find /usr/* -name "PSL*" -type d | xargs rm -rf
13+
find /usr/* -name "pslab*" -type d | xargs rm -rf
14+
find /opt/* -name "pslab-*" -type d | xargs rm -rf
15+
find /usr/* -name "Experiments" -type f | xargs rm -rf
16+
@echo "All selected files are deleted.."
17+
18+
verifyFiles:
19+
@find /usr/* -name "PSL*" -type d
20+
@find /usr/* -name "pslab*" -type d
21+
@find /opt/* -name "pslab-*" -type d
22+
@find /usr/* -name "Experiments" -type f
23+
@echo -n "Confirm if you want to remove all these files.. [Y/N] " && read ans && [ $${ans:-N} = Y ]
1624

1725
clean:
1826
# Remove build files
1927
@rm -rf docs/_*
2028
@rm -rf PSL.egg-info build
2129
@find . -name "*~" -o -name "*.pyc" -o -name "__pycache__" | xargs rm -rf
22-
# Remove previously installed library files if there is any
2330
if [ ${INSTALL_PATH_LEN} -gt 2 ]; then sudo rm -rf $(INSTALL_PATH)/PSL $(INSTALL_PATH)/PSL-1* ; fi
2431

2532
install:
2633
python3 setup.py install
27-
# rules for udev
2834
mkdir -p $(DESTDIR)/lib/udev/rules.d
2935
install -m 644 99-pslab.rules $(DESTDIR)/lib/udev/rules.d/99-pslab

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