Commit 5f09c258 authored by Francesco Giancane's avatar Francesco Giancane Committed by Pavel Emelyanov

make: Makefile variable 'PREFIX' should be configurable.

I tried to build and install the criu package from source. All went
well, unless for the install part.

In particular,
PREFIX=/
DESTDIR=~/build_criu

PREFIX=${PREFIX} DESTDIR=${DESTDIR} make install

resulted in installing criu packages in ~/build_criu/usr/local/,
ignoring PREFIX, even if this variable should be configurable as of
manual and GCS.
Reviewed-by: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarFrancesco Giancane <francescogiancane8@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 5d639235
# #
# Installation paths. # Installation paths.
PREFIX := /usr/local PREFIX ?= /usr/local
BINDIR := $(PREFIX)/bin BINDIR := $(PREFIX)/bin
SBINDIR := $(PREFIX)/sbin SBINDIR := $(PREFIX)/sbin
MANDIR := $(PREFIX)/share/man MANDIR := $(PREFIX)/share/man
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment