update Makefile to support overrides
This is what I needed to do to package this app for gentoo. Hilarious work btw, really love it. thanks.
This commit is contained in:
parent
b95317c382
commit
a5ec746492
6
Makefile
6
Makefile
@ -1,7 +1,7 @@
|
|||||||
UNAME := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
UNAME := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||||
|
|
||||||
# Installation directories following GNU conventions
|
# Installation directories following GNU conventions
|
||||||
prefix = /usr/local
|
prefix ?= /usr/local
|
||||||
exec_prefix = $(prefix)
|
exec_prefix = $(prefix)
|
||||||
bindir = $(exec_prefix)/bin
|
bindir = $(exec_prefix)/bin
|
||||||
sbindir = $(exec_prefix)/sbin
|
sbindir = $(exec_prefix)/sbin
|
||||||
@ -14,8 +14,8 @@ BIN=bin
|
|||||||
OBJ=obj
|
OBJ=obj
|
||||||
SRC=src
|
SRC=src
|
||||||
|
|
||||||
CC = gcc
|
CC ?= gcc
|
||||||
CFLAGS = -Wextra -Wall
|
CFLAGS ?= -Wextra -Wall
|
||||||
LDLIBS = -lncursesw
|
LDLIBS = -lncursesw
|
||||||
DARWIN_LDLIBS = -lncurses
|
DARWIN_LDLIBS = -lncurses
|
||||||
NCURSES_H = /usr/include/ncurses.h
|
NCURSES_H = /usr/include/ncurses.h
|
||||||
|
Loading…
Reference in New Issue
Block a user