Skip to content

chore: updated makefile with fullcleanup task #98

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 14, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,29 @@ INSTALL_PATH_LEN = $(shell echo $(INSTALL_PATH) | wc -c)
all:
python3 setup.py build

fullclean:
fullcleanup: verifyFiles
# 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
find /usr/* -name "PSL*" | xargs rm -rf
find /usr/* -name "pslab*" | xargs rm -rf
find /opt/* -name "pslab-*" | xargs rm -rf
rm -rf /usr/bin/Experiments /usr/local/bin/Experiments
find /usr/* -name "PSL*" -type d | xargs rm -rf
find /usr/* -name "pslab*" -type d | xargs rm -rf
find /opt/* -name "pslab-*" -type d | xargs rm -rf
find /usr/* -name "Experiments" -type f | xargs rm -rf
@echo "All selected files are deleted.."

verifyFiles:
@find /usr/* -name "PSL*" -type d
@find /usr/* -name "pslab*" -type d
@find /opt/* -name "pslab-*" -type d
@find /usr/* -name "Experiments" -type f
@echo -n "Confirm if you want to remove all these files.. [Y/N] " && read ans && [ $${ans:-N} = Y ]

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

install:
python3 setup.py install
# rules for udev
mkdir -p $(DESTDIR)/lib/udev/rules.d
install -m 644 99-pslab.rules $(DESTDIR)/lib/udev/rules.d/99-pslab
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