]> xenbits.xensource.com Git - people/andrewcoop/xen-test-framework.git/commit
Correct the usage of $(DESTDIR) and $(PREFIX)
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 20 Jul 2016 17:43:13 +0000 (18:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 26 Jul 2016 10:18:24 +0000 (11:18 +0100)
commit362a26f5f0b7f1d068d0bdd0d68de846297524cd
tree7e839d1540694b54803ef586a0c880f8941437ed
parentb8fc9ccabb4e26707c42ad2e02554f3c24bcf68d
Correct the usage of $(DESTDIR) and $(PREFIX)

The GNU coding standards expect $(DESTDIR) to be the root of everything
installed, and for $(PREFIX) to then be added to the path.  This is not how
XTF previously behaved.

XTF is not a typical package, and doesn't meet the usual semantics; it expects
to arrange all files under a single directory.  Drop the use of $(PREFIX)
entirely (to avoid the expectation that it behaves as $(prefix) usually
behaves) and introduce $(xtfdir) instead.

$(DESTDIR) now works as intended for staged installes, and $(xtfdir) is the
single selected directy containing all installed content.

The intended way to install XTF now:

  $ make install DESTDIR=/path/to/staging/area xtfdir=/local/scratch/xtf

Reported-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Makefile
build/gen.mk
config/default-hvm.cfg.in
config/default-pv.cfg.in
docs/introduction.dox
docs/mainpage.dox