build: remove clutter from Makefile and add uninstall task
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,7 +1,12 @@
|
|||||||
ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
|
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:
|
.PHONY: install
|
||||||
ln -fs $(ROOT_DIR)/ $(INSTALL_DIR)/albert-plugin-python-http-status-codes
|
install: uninstall
|
||||||
echo $(ROOT_DIR)
|
ln -fs $(ROOT_DIR)/ $(INSTALL_DIR)
|
||||||
echo $(INSTALL_DIR)
|
|
||||||
|
.PHONY: uninstall
|
||||||
|
uninstall:
|
||||||
|
rm -f $(INSTALL_DIR)
|
||||||
Reference in New Issue
Block a user