diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-30 06:21:32 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-09-30 06:21:32 +0530 |
commit | 5fd7b9cebdca3f7fda60bb35d3d19bab9d06b2bb (patch) | |
tree | df2ee429955ebed55d20704da238bf11b2a12f7f /.local/usr/wal-telegram/Makefile | |
parent | 1d70accabd7e66dc4fc3ec256da3eb383e59e528 (diff) |
wal-telegram changes
Diffstat (limited to '.local/usr/wal-telegram/Makefile')
-rw-r--r-- | .local/usr/wal-telegram/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
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 |