Makefile: make all variables overridable

For cross-compilation and some platforms we want to change the binary
name or install paths.
reverse-branch
François Revol 8 years ago committed by anarcat
parent 767f4b948f
commit c26a221e32
  1. 6
      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)

Loading…
Cancel
Save