1
0

build: remove clutter from Makefile and add uninstall task

This commit is contained in:
2025-12-18 12:17:55 +01:00
parent 835afe3202
commit d7cc2d3e7b

View File

@@ -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)
.PHONY: install
install: uninstall
ln -fs $(ROOT_DIR)/ $(INSTALL_DIR)
.PHONY: uninstall
uninstall:
rm -f $(INSTALL_DIR)