File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,29 @@ INSTALL_PATH_LEN = $(shell echo $(INSTALL_PATH) | wc -c)
7
7
all :
8
8
python3 setup.py build
9
9
10
- fullclean :
10
+ fullcleanup : verifyFiles
11
11
# 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 ]
16
24
17
25
clean :
18
26
# Remove build files
19
27
@rm -rf docs/_*
20
28
@rm -rf PSL.egg-info build
21
29
@find . -name " *~" -o -name " *.pyc" -o -name " __pycache__" | xargs rm -rf
22
- # Remove previously installed library files if there is any
23
30
if [ ${INSTALL_PATH_LEN} -gt 2 ]; then sudo rm -rf $( INSTALL_PATH) /PSL $( INSTALL_PATH) /PSL-1* ; fi
24
31
25
32
install :
26
33
python3 setup.py install
27
- # rules for udev
28
34
mkdir -p $(DESTDIR ) /lib/udev/rules.d
29
35
install -m 644 99-pslab.rules $(DESTDIR ) /lib/udev/rules.d/99-pslab
You can’t perform that action at this time.
0 commit comments