]> rtime.felk.cvut.cz Git - jailhouse.git/commit
tooling: extracts common install-definitions into a central include
authorBenjamin Block <bebl@mageta.org>
Wed, 3 Sep 2014 12:53:17 +0000 (14:53 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 8 Sep 2014 11:34:12 +0000 (13:34 +0200)
commitef91d352e1ffe993d19e4c3c741ece8e30f8af00
treebc3cacf82fe7a657f5bbbb13d4fc6775b1b9ede3
parent932db6709b0ed17542cbbf3b599cd469214cd03a
tooling: extracts common install-definitions into a central include

After adding install-rules to the tools- and root-Makefile we have some
redundancies in some variables and definitions (e.g.: $(INSTALL)). To fix
this, extract all duplications and general definitions concerning the
install-process into one central Makefile-include `install.mk`.

This also unifies the way directories are created for
installation-rules. Previously we would just create them every time
without checking if that is needed. Now we add them as prerequisite to
the install-rule and generate a rule for each of them in `install.mk`.
This way `make` will figure out if the need to be created. This also
lowers the verboseness of the Makefile.

Signed-off-by: Benjamin Block <bebl@mageta.org>
[Jan: moved install.mk to scripts folder]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Makefile
scripts/install.mk [new file with mode: 0644]
tools/Makefile