summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Walton <bwalton@artsci.utoronto.ca>2012-07-25 21:25:28 -0400
committerJoey Hess <joey@kitenet.net>2012-07-25 23:39:25 -0400
commit9aebcfaa8b9cf1715e346e219db5eae590f568f5 (patch)
tree6d9dedfed9c91e169a883dd33417e6f04e11cd72 /Makefile
parent80dd7ed5d66eebd6ae7b7e3aadfa99f37ceb419f (diff)
downloadmoreutils-9aebcfaa8b9cf1715e346e219db5eae590f568f5.tar.gz
Allow overriding PREFIX and CFLAGS to make the build more flexible
This patch allows the package to be more easily portable to other systems, such as OpenCSW where we install to /opt/csw and don't always use gcc. Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 21af683..be379ab 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno
PERLSCRIPTS=vidir vipe ts combine zrun chronic
MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1
-CFLAGS=-O2 -g -Wall
+CFLAGS?=-O2 -g -Wall
INSTALL_BIN?=install -s
-PREFIX=/usr
+PREFIX?=/usr
DOCBOOK2XMAN=docbook2x-man