From 5fd7b9cebdca3f7fda60bb35d3d19bab9d06b2bb Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Fri, 30 Sep 2022 06:21:32 +0530 Subject: wal-telegram changes --- .local/usr/wal-telegram/Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .local/usr/wal-telegram/Makefile (limited to '.local/usr/wal-telegram/Makefile') diff --git a/.local/usr/wal-telegram/Makefile b/.local/usr/wal-telegram/Makefile new file mode 100644 index 0000000..85b89f7 --- /dev/null +++ b/.local/usr/wal-telegram/Makefile @@ -0,0 +1,20 @@ +PREFIX := /usr/share + +#install by default +all: install + +install: + install -Dm644 ./LICENSE "$(PREFIX)/licenses/wal-telegram/LICENSE" + install -Dm755 ./wal-telegram "$(PREFIX)/wal-telegram/wal-telegram" + install -Dm644 ./colors.wt-constants "$(PREFIX)/wal-telegram/colors.wt-constants" + rm -f $(PREFIX)/wal-telegram/.shortcut + echo "/bin/sh -c \"$(PREFIX)/wal-telegram/wal-telegram \$$*\"" >> $(PREFIX)/wal-telegram/.shortcut + chmod 755 $(PREFIX)/wal-telegram/.shortcut + install -Dm755 $(PREFIX)/wal-telegram/.shortcut "/usr/bin/wal-telegram" + +uninstall: + rm -rf "$(PREFIX)/licenses/wal-telegram" + rm -rf "$(PREFIX)/wal-telegram" + rm -f "/usr/bin/wal-telegram" + +.PHONY: all install uninstall -- cgit v1.2.3