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.
21 exec_prefix ?= $(prefix)
22 sbindir ?= $(exec_prefix)/sbin
23 libexecdir ?= $(exec_prefix)/libexec
24 datarootdir ?= $(prefix)/share
25 datadir ?= $(datarootdir)
26 firmwaredir ?= /lib/firmware
28 # all directories listed here will be created using a generic rule below
29 INSTALL_DIRECTORIES := $(prefix) \
38 INSTALL_PROGRAM ?= $(INSTALL)
39 INSTALL_DATA ?= $(INSTALL) -m 644
40 INSTALL_DIR ?= $(INSTALL) -d -m 755
42 # creates a rule for each dir in $(INSTALL_DIRECTORIES) under the current
43 # $(DESTDIR) and additionally to that for each of these dirs a subdir named
44 # `jailhouse`. These can be used as prerequirement for install-rules and will
45 # thus be created on demand (or not at all if not used in that way).
46 $(sort $(INSTALL_DIRECTORIES:%=$(DESTDIR)%) \
47 $(INSTALL_DIRECTORIES:%=$(DESTDIR)%/jailhouse)):