aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-08-25 20:58:49 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-08-25 20:58:49 +0200
commit928b251aaec9b30b8a9fc93a33b406114ab289f4 (patch)
tree137795e7fffb08e2392e5b1c94c0898a3c0e5e61 /Makefile
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..809f81e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+NAME = bm
+BIN = $(NAME).filter.dpi
+DILLO_DIR = ~/.dillo
+DPI_DIR = $(DILLO_DIR)/dpi/$(NAME)
+
+all:
+ @echo "Use 'make install' to install"
+ @echo "Use 'make uninstall' to uninstall"
+
+link: $(BIN)
+ mkdir -p $(DPI_DIR)
+ ln -frs $(BIN) $(DPI_DIR)
+ dpidc stop || true
+
+install: $(BIN)
+ mkdir -p $(DPI_DIR)
+ cp -f $(BIN) $(DPI_DIR)
+ dpidc stop || true
+
+uninstall: $(BIN)
+ rm -f $(DPI_DIR)/$(BIN)
+
+.PHONY:
+ all link install uninstall