2 # Jailhouse, a Linux-based partitioning hypervisor
4 # Copyright (c) Siemens AG, 2014
7 # Jan Kiszka <jan.kiszka@siemens.com>
8 # Benjamin Block <bebl@mageta.org>
10 # This work is licensed under the terms of the GNU GPL, version 2. See
11 # the COPYING file in the top-level directory.
20 MAKEFLAGS += --no-print-directory
23 exec_prefix ?= $(prefix)
24 sbindir ?= $(exec_prefix)/sbin
25 libexecdir ?= $(exec_prefix)/libexec
26 datarootdir ?= $(prefix)/share
27 datadir ?= $(datarootdir)
28 firmwaredir ?= /lib/firmware
30 # all directories listed here will be created using a generic rule below
31 INSTALL_DIRECTORIES := $(prefix) \
40 INSTALL_PROGRAM ?= $(INSTALL)
41 INSTALL_DATA ?= $(INSTALL) -m 644
42 INSTALL_DIR ?= $(INSTALL) -d -m 755
44 # creates a rule for each dir in $(INSTALL_DIRECTORIES) under the current
45 # $(DESTDIR) and additionally to that for each of these dirs a subdir named
46 # `jailhouse`. These can be used as prerequirement for install-rules and will
47 # thus be created on demand (or not at all if not used in that way).
48 $(sort $(INSTALL_DIRECTORIES:%=$(DESTDIR)%) \
49 $(INSTALL_DIRECTORIES:%=$(DESTDIR)%/jailhouse)):
52 ARCH ?= $(shell uname -m)