makefiles - Add PREFIX definition
PATCH 1/6 makefiles - Add PREFIX definition
# HG changeset patch
# User Bastian Blank <[email protected]>
# Date 1200745316 -3600
# Node ID c5c18c78ceaeb2a983fb917163f9a0b80be384fe # Parent 3f26758bcc020c741fdae010f969115064b577c2 Add PREFIX definition as base for all installed files.
config/StdGNU.mk +2 -0
@@ -17,6 +17,8 @@ INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_PROG = $(INSTALL) -m0755 -p +PREFIX = /usr + LIB64DIR = lib64 SOCKET_LIBS =
config/SunOS.mk +2 -0
@@ -18,6 +18,8 @@ INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_DATA = $(INSTALL) -m0644 -p INSTALL_PROG = $(INSTALL) -m0755 -p +PREFIX = /usr + LIB64DIR = lib/amd64 SOCKET_LIBS = -lsocket
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Short of this being configurable, I think this should be
PREFIX ?= /usr
in order to allow overriding it through the environment.
Jan
Quoted 1 line
Quoted 1 line
Quoted 1 line
Bastian Blank <[email protected]> 22.01.08 14:26 >>>
# HG changeset patch
# User Bastian Blank <[email protected]>
# Date 1200745316 -3600
# Node ID c5c18c78ceaeb2a983fb917163f9a0b80be384fe # Parent 3f26758bcc020c741fdae010f969115064b577c2 Add PREFIX definition as base for all installed files.
config/StdGNU.mkSat Jan 19 13:21:56 2008 +0100 renamed from config/StdGNU.mkFri Jan 18 22:27:51 2008 +0000 +0 -0
@@ -17,6 +17,8 @@ INSTALL_DATA = $(INSTALL) -m0644 -p
INSTALL_DATA = $(INSTALL) -m0644 -pINSTALL_PROG = $(INSTALL) -m0755 -p
+PREFIX = /usr
+
LIB64DIR = lib64
SOCKET_LIBS =
config/SunOS.mkSat Jan 19 13:21:56 2008 +0100 renamed from config/SunOS.mkFri Jan 18 22:27:51 2008 +0000 +0 -0
@@ -18,6 +18,8 @@ INSTALL_DATA = $(INSTALL) -m0644 -p
INSTALL_DATA = $(INSTALL) -m0644 -pINSTALL_PROG = $(INSTALL) -m0755 -p
+PREFIX = /usr
+
LIB64DIR = lib/amd64
SOCKET_LIBS = -lsocket
Quoted 3 lines · Jan Beulich
Short of this being configurable, I think this should be PREFIX ?= /usr
in order to allow overriding it through the environment.
Hmm. Usualy you don't use environment but makeflags to overwrite them. And both variants are overwritten by them.
Bastian
Bastian Blank writes ("Re: [Xen-devel] [PATCH 1/6] makefiles - Add PREFIX definition"):
Quoted 7 lines · Jan Beulich
Quoted 3 lines
Short of this being configurable, I think this should be PREFIX ?= /usr
in order to allow overriding it through the environment.Hmm. Usualy you don't use environment but makeflags to overwrite them. And both variants are overwritten by them.
Yes, but people might like to do either. I think ?= is better practice.
Ian.