From c26a221e320b870d01d29cf8a1091729621237e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Mon, 20 Aug 2018 16:18:09 +0200 Subject: [PATCH] Makefile: make all variables overridable For cross-compilation and some platforms we want to change the binary name or install paths. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5028ee4..91fef76 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,10 @@ SRC = ttyclock.c CC ?= gcc -BIN = tty-clock +BIN ?= tty-clock PREFIX ?= /usr/local -INSTALLPATH = ${DESTDIR}${PREFIX}/bin -MANPATH = ${DESTDIR}${PREFIX}/share/man/man1 +INSTALLPATH ?= ${DESTDIR}${PREFIX}/bin +MANPATH ?= ${DESTDIR}${PREFIX}/share/man/man1 ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y) CFLAGS += -Wall -g $$(ncurses5-config --cflags)