Skip to content
Snippets Groups Projects
Verified Commit db6ed9d0 authored by perry's avatar perry
Browse files

fixed Makefile

Makefile did not remove install systemd service and timers before
parent 3a4134b8
Branches
No related merge requests found
USRBIN := /usr/local/bin
SYSTEMD_DIR := /etc/systemd/system
CONFIG_FILE := /etc/plymouth-themes.json
install:
@echo "Installing..."
install -m755 plymouth-random-theme $(USRBIN)
install plymouth-theme.service plymouth-theme.timer $(SYSTEMD_DIR)
@echo "Done"
@echo -n "Reloading systemd..."
systemctl daemon-reload
@echo "Done"
@echo "Type 'systemctl enable --now plymouth-theme.timer' to enable the timer"
uninstall:
rm -rf $(USRBIN)/plymouth-random-theme
@echo "make uninstall will not remove anything in /etc/plymouth-themes.json" && \
echo "Do 'sudo make purge' to remove it."
@echo -n "Removing installed files..."
rm -rf $(USRBIN)/plymouth-random-theme $(SYSTEMD_DIR)/plymouth-theme.service $(SYSTEMD_DIR)/plymouth-theme.timer
@echo "Done"
@echo -n "Reloading systemd..."
systemctl daemon-reload
@echo "Done"
@echo "NOTE: make uninstall will not remove anything in $(CONFIG_FILE)" && \
echo "Do 'sudo make purge' to remove it. Ignore if you are already running sudo make purge"
# Remove config files, like apt purge. Purge should first do what
# uninstall does, so we add uninstall as a dependency to this rule.
purge: uninstall
rm -rf /etc/plymouth-themes.json
@echo "Removing config files..."
rm -rf $(CONFIG_FILE)
@echo "Done"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment