Patchwork Fix 'make install' from non-srcdir build

login
register
mail settings
Submitter Amit Shah
Date Feb. 26, 2010, 8:30 a.m.
Message ID <1267173028-19509-1-git-send-email-amit.shah@redhat.com>
Download mbox | patch
Permalink /patch/46314/
State New
Headers show

Comments

Amit Shah - Feb. 26, 2010, 8:30 a.m.
Commit b5ec5ce0 broke 'make install' from non source-dir build. Fix.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Aurelien Jarno - Feb. 27, 2010, 3:22 p.m.
On Fri, Feb 26, 2010 at 02:00:28PM +0530, Amit Shah wrote:
> Commit b5ec5ce0 broke 'make install' from non source-dir build. Fix.
> 
> Signed-off-by: Amit Shah <amit.shah@redhat.com>

Thanks, applied.

> ---
>  Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 296f500..14c1930 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -207,7 +207,7 @@ endif
>  
>  install-sysconfig:
>  	$(INSTALL_DIR) "$(sysconfdir)/qemu"
> -	$(INSTALL_DATA) sysconfigs/target/target-x86_64.conf "$(sysconfdir)/qemu"
> +	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(sysconfdir)/qemu"
>  
>  install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
>  	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"
> -- 
> 1.6.2.5
> 
> 
> 
>

Patch

diff --git a/Makefile b/Makefile
index 296f500..14c1930 100644
--- a/Makefile
+++ b/Makefile
@@ -207,7 +207,7 @@  endif
 
 install-sysconfig:
 	$(INSTALL_DIR) "$(sysconfdir)/qemu"
-	$(INSTALL_DATA) sysconfigs/target/target-x86_64.conf "$(sysconfdir)/qemu"
+	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(sysconfdir)/qemu"
 
 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
 	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"