]> rtime.felk.cvut.cz Git - jailhouse.git/blob - Makefile
Documentation: Add Doxygen infrastructure
[jailhouse.git] / Makefile
1 #
2 # Jailhouse, a Linux-based partitioning hypervisor
3 #
4 # Copyright (c) Siemens AG, 2013, 2014
5 #
6 # Authors:
7 #  Jan Kiszka <jan.kiszka@siemens.com>
8 #
9 # This work is licensed under the terms of the GNU GPL, version 2.  See
10 # the COPYING file in the top-level directory.
11 #
12
13 # no recipes above this one (also no includes)
14 all: modules tools
15
16 # includes installation-related variables and definitions
17 include scripts/include.mk
18
19 # out-of-tree build for our kernel-module, firmware and inmates
20 KDIR ?= /lib/modules/`uname -r`/build
21
22 INSTALL_MOD_PATH ?= $(DESTDIR)
23 export INSTALL_MOD_PATH
24
25 DOXYGEN ?= doxygen
26
27 define run-kbuild =
28         +$(Q)$(MAKE) -C $(KDIR) M=$$PWD $@
29 endef
30
31 modules:
32         $(run-kbuild)
33
34 hypervisor/jailhouse.bin: modules
35
36 # recursive build of tools
37 tools:
38         $(Q)$(MAKE) -C tools
39
40 # documentation, build needs to be triggered explicitly
41 docs:
42         $(DOXYGEN) Documentation/Doxyfile
43
44 # clean up kernel, tools and generated docs
45 clean:
46         $(run-kbuild)
47         $(Q)$(MAKE) -C tools $@
48         rm -rf Documentation/generated
49
50 modules_install: modules
51         $(run-kbuild)
52
53 firmware_install: hypervisor/jailhouse.bin $(DESTDIR)$(firmwaredir)
54         $(INSTALL_DATA) $^
55
56 install: modules_install firmware_install
57         $(Q)$(MAKE) -C tools $@
58
59 .PHONY: modules_install install clean firmware_install modules tools docs