Patchwork [1/3] Makefile: use $(confdir) instead of hardcoding $(sysconfdir)/qemu

login
register
mail settings
Submitter Eduardo Habkost
Date March 20, 2012, 8:15 p.m.
Message ID <1332274504-10437-2-git-send-email-ehabkost@redhat.com>
Download mbox | patch
Permalink /patch/147832/
State New
Headers show

Comments

Eduardo Habkost - March 20, 2012, 8:15 p.m.
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Paolo Bonzini - March 21, 2012, 12:40 p.m.
Il 20/03/2012 21:15, Eduardo Habkost ha scritto:
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> ---
>  Makefile |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index 1bc3cb0..9d583c4 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -279,8 +279,8 @@ ifdef CONFIG_VIRTFS
>  	$(INSTALL_DATA) fsdev/virtfs-proxy-helper.1 "$(DESTDIR)$(mandir)/man1"
>  endif
>  install-sysconfig:
> -	$(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
> -	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
> +	$(INSTALL_DIR) "$(DESTDIR)$(confdir)"
> +	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(confdir)"
>  
>  install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
>  	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>

Patch

diff --git a/Makefile b/Makefile
index 1bc3cb0..9d583c4 100644
--- a/Makefile
+++ b/Makefile
@@ -279,8 +279,8 @@  ifdef CONFIG_VIRTFS
 	$(INSTALL_DATA) fsdev/virtfs-proxy-helper.1 "$(DESTDIR)$(mandir)/man1"
 endif
 install-sysconfig:
-	$(INSTALL_DIR) "$(DESTDIR)$(sysconfdir)/qemu"
-	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(sysconfdir)/qemu"
+	$(INSTALL_DIR) "$(DESTDIR)$(confdir)"
+	$(INSTALL_DATA) $(SRC_PATH)/sysconfigs/target/target-x86_64.conf "$(DESTDIR)$(confdir)"
 
 install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig
 	$(INSTALL_DIR) "$(DESTDIR)$(bindir)"