clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 443b58583ef216e2405e4a38d401f7c36386d21e
parent 64661dffbf8f285f76fcc9e4c11e21b1c2429e69
Author: Jörg Thalheim <joerg@thalheim.io>
Date:   Fri, 31 Jul 2020 06:38:32 +0100

Makefile: install into PREFIX

Diffstat:
MMakefile | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,14 +1,12 @@ # `dmenu` is not a hard dependency, but you need it unless # you plan to set CM_LAUNCHER to another value like `rofi` REQUIRED_BINS := xsel clipnotify +PREFIX ?= /usr $(foreach bin,$(REQUIRED_BINS),\ $(if $(shell command -v $(bin) 2> /dev/null),$(info Found `$(bin)`),$(error Missing Dep. Please install `$(bin)`))) .PHONY: install install: - install -D -m755 clipmenu /usr/bin/clipmenu - install -D -m755 clipmenud /usr/bin/clipmenud - install -D -m755 clipdel /usr/bin/clipdel - install -D -m755 clipctl /usr/bin/clipctl - install -D -m644 init/clipmenud.service /usr/lib/systemd/user/clipmenud.service + install --target "${PREFIX}/bin" -D -m755 clipmenu clipmenud clipdel clipctl + install -D -m644 init/clipmenud.service "${PREFIX}/lib/systemd/user/clipmenud.service"