From 992b1890a7c3ab487f69b4f8dd2f48f6f26575ae Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Mon, 2 Mar 2009 10:09:44 +0000 Subject: docs/buildroot: use DESTDIR / install-strip for target install example --- docs/buildroot.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/buildroot.html b/docs/buildroot.html index 1bf3ac015..a13945969 100644 --- a/docs/buildroot.html +++ b/docs/buildroot.html @@ -1014,7 +1014,7 @@ endif 34 $(MAKE) CC=$(TARGET_CC) -C $(FOO_DIR) 35 36 $(TARGET_DIR)/$(FOO_TARGET_BINARY): $(FOO_DIR)/$(FOO_BINARY) - 37 $(MAKE) prefix=$(TARGET_DIR)/usr -C $(FOO_DIR) install + 37 $(MAKE) DESTDIR=$(TARGET_DIR) -C $(FOO_DIR) install-strip 38 rm -Rf $(TARGET_DIR)/usr/man 39 40 foo: uclibc ncurses $(TARGET_DIR)/$(FOO_TARGET_BINARY) @@ -1111,8 +1111,8 @@ endif

Lines 36-38 defines a target and associated rules that install the software inside the target filesystem. It depends on the binary file in the source directory, to make sure the software has - been compiled. It uses the install target of the - software Makefile by passing a prefix + been compiled. It uses the install-strip target of the + software Makefile by passing a DESTDIR argument, so that the Makefile doesn't try to install the software inside host /usr but inside target /usr. After the installation, the -- cgit v1.2.3