From b929650262ddf885f660f542875713972e0148d9 Mon Sep 17 00:00:00 2001 From: Kevin Ernst Date: Fri, 24 Sep 2021 11:42:11 -0400 Subject: [PATCH] Makefile: allow PREFIX, MANDIR, BINDIR override - fixes brandt/symlinks#9 - partially address concerns about lack of a `./configure` script in brandt/symlinks#4 --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 3b88792..211c397 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ # Makefile for symlinks -CC := gcc +CC = gcc +INSTALL = install CFLAGS += $(shell getconf LFS_CFLAGS 2>/dev/null) OWNER = root GROUP = root -MANDIR = /usr/man/man8/symlinks.8 -BINDIR = /usr/local/bin +PREFIX ?= /usr/local +MANDIR ?= $(PREFIX)/share/man/man8/symlinks.8 +BINDIR ?= $(PREFIX)/bin + .PHONY: all all: symlinks