~mcf/samurai

43ea5c012904bf370916492cc6c7703298210275 — periish 2 months ago 72f69b7
Makefile: Add support for BINDIR variable
1 files changed, 3 insertions(+), 2 deletions(-)

M Makefile
M Makefile => Makefile +3 -2
@@ 1,6 1,7 @@
.POSIX:

PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
ALL_CFLAGS=$(CFLAGS) -std=c99 -Wall -Wextra -Wpedantic
OBJ=\


@@ 39,8 40,8 @@ samu: $(OBJ)
$(OBJ): $(HDR)

install: samu samu.1
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp samu $(DESTDIR)$(PREFIX)/bin/
	mkdir -p $(DESTDIR)$(BINDIR)
	cp samu $(DESTDIR)$(BINDIR)/
	mkdir -p $(DESTDIR)$(MANDIR)/man1
	cp samu.1 $(DESTDIR)$(MANDIR)/man1/