tMakefile to install/uninstall files. Defaults to /home/ronin/bin but can specify DESTDIR. - plumber - Plumber – a modern approach to plumbing
(HTM) git clone git://r-36.net/plumber
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 9e6c24b61ccb5fb2971d05e8a99a100c31c8de73
(DIR) parent ab964f3e4f6a0a5a35a85b99bf7da4f29842d08e
(HTM) Author: Ian Jones <ian@contractcoder.biz>
Date: Wed, 26 Jan 2022 21:17:14 +0000
Makefile to install/uninstall files. Defaults to /home/ronin/bin but can specify DESTDIR.
Signed-off-by: Christoph Lohmann <20h@r-36.net>
Diffstat:
Makefile | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -0,0 +1,24 @@
+.POSIX:
+DESTDIR=$(HOME)/bin
+ALL_BIN_FILES:=$(shell ls bin)
+ALL_OPENER_FILES:=$(shell ls openers)
+
+all:
+ @echo "install / uninstall - DESTDIR default is $(HOME)/bin"
+
+.PHONY: install uninstall
+install:
+ @echo "Installing to $(DESTDIR)\n"
+ mkdir -p $(DESTDIR)
+ cp bin/plumber $(DESTDIR)
+ cp bin/opener $(DESTDIR)
+ cp -a bin/p $(DESTDIR)
+ cp -a bin/plumb $(DESTDIR)
+ cp -a bin/Þ $(DESTDIR)
+ cp openers/* $(DESTDIR)
+ @echo "\nRemember to 'export XTERM=<your_preferred_xterminal>' and add it to .mkshrc or .bashrc to make permanent.\n"
+uninstall:
+ @echo "Uninstalling from $(DESTDIR)\n"
+ cd $(DESTDIR);\
+ rm -f $(ALL_BIN_FILES) $(ALL_OPENER_FILES);\
+ cd -