OSDN Git Service

install: honor DESTDIR on sysconfdir population
authorAndre Przywara <andre.przywara@amd.com>
Mon, 8 Mar 2010 14:43:41 +0000 (15:43 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 11:09:25 +0000 (12:09 +0100)
When creating and populating $sysconfdir, we should prepend $DESTDIR
as we do with all other paths.

Reported-by: Frank Arnold <frank.arnold@amd.com>
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Makefile

index bf2cef2..2066c12 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -194,8 +194,8 @@ ifdef CONFIG_POSIX
 endif
 
 install-sysconfig:
-       $(INSTALL_DIR) "$(sysconfdir)/qemu"
-       $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(sysconfdir)/qemu"
+       $(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
+       $(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
 
 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
        $(INSTALL_DIR) "$(DESTDIR)$(bindir)"