]> err.no Git - moreutils/commitdiff
Allow overriding PREFIX and CFLAGS to make the build more flexible
authorBen Walton <bwalton@artsci.utoronto.ca>
Thu, 26 Jul 2012 01:25:28 +0000 (21:25 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 26 Jul 2012 03:39:25 +0000 (23:39 -0400)
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>
Makefile

index 21af6831ab7e48847448ade0b3903ddfb7ade1db..be379abbd3fdacc131f7458e914c38778e307efe 100644 (file)
--- 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