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))))
|
||||
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)
|
||||
Reference in New Issue
Block a user