commit d3b3c3e306219a25b209a06bc8fe519bb7e5c7f3 parent 70e3b2bf83b2bda08aea0478d8b64bc1c0cddc95 Author: Louis Burda <quent.burda@gmail.com> Date: Sat, 24 Sep 2022 17:16:11 +0200 Add bindir makefile var and default to /usr/bin Diffstat:
M | Makefile | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,7 +1,7 @@ CFLAGS = LDLIBS = -lX11 -lImlib2 -.PHONY: all clean +BINDIR ?= /usr/bin all: dsnip @@ -12,7 +12,9 @@ dsnip: main.c $(CC) -o $@ $^ $(CFLAGS) $(LDLIBS) install: dsnip - install -m 755 dsnip $(DESTDIR)$(PREFIX)/bin + install -m 755 dsnip $(DESTDIR)$(PREFIX)$(BINDIR) uninstall: - rm $(DESTDIR)$(PREFIX)/bin/dsnip + rm $(DESTDIR)$(PREFIX)$(DINDIR)/dsnip + +.PHONY: all clean