commit: 07ed78f42a78934e213b367cf82ba55cd331637e
parent: d995f70a93c8701b0bb881e10ba19f367badc950
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 13 Apr 2019 17:32:55 +0200
Makefile: Add BINDIR preference
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -1,6 +1,7 @@
.POSIX:
PREFIX = /usr/local
+BINDIR = $(PREFIX)/bin
DEPS = gtk+-3.0 webkit2gtk-4.0
OBJS = badwolf
@@ -16,8 +17,8 @@ all: $(OBJS)
$(CC) -std=c11 $(CFLAGS) $(CDEPS) -o $@ $< $(LDFLAGS) $(LIBS)
install: badwolf
- mkdir -p $(DESTDIR)$(PREFIX)/bin
- cp -p badwolf $(DESTDIR)$(PREFIX)/bin/badwolf
+ mkdir -p $(DESTDIR)$(BINDIR)
+ cp -p badwolf $(DESTDIR)$(BINDIR)/badwolf
clean:
rm $(OBJS)