From d7cc2d3e7b5bf7fcd4a438f2647364deb12c511f Mon Sep 17 00:00:00 2001 From: Felix Boers Date: Thu, 18 Dec 2025 12:17:55 +0100 Subject: [PATCH] build: remove clutter from Makefile and add uninstall task --- Makefile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c97cc83..63a2c78 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) -INSTALL_DIR:=$(HOME)/.local/share/albert/python/plugins +PLUGIN_NAME:=albert-plugin-python-http-status-codes +INSTALL_ROOT:=$(HOME)/.local/share/albert/python/plugins +INSTALL_DIR:=$(INSTALL_ROOT)/$(PLUGIN_NAME) -install: - ln -fs $(ROOT_DIR)/ $(INSTALL_DIR)/albert-plugin-python-http-status-codes - echo $(ROOT_DIR) - echo $(INSTALL_DIR) \ No newline at end of file +.PHONY: install +install: uninstall + ln -fs $(ROOT_DIR)/ $(INSTALL_DIR) + +.PHONY: uninstall +uninstall: + rm -f $(INSTALL_DIR) \ No newline at end of file