qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 6/8] Makefile: install modules with "make ins


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v6 6/8] Makefile: install modules with "make install"
Date: Wed, 11 Sep 2013 15:50:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8

Il 11/09/2013 15:34, Fam Zheng ha scritto:
> Install all the subdirs for modules under configure option "moddir".
> 
> Signed-off-by: Fam Zheng <address@hidden>
> ---
>  Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/Makefile b/Makefile
> index c50b4b3..ca84d32 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -360,6 +360,12 @@ install-datadir install-localstatedir
>  ifneq ($(TOOLS),)
>       $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
>  endif
> +ifneq ($(CONFIG_MODULES),)

Perhaps modules-m instead of CONFIG_MODULES would be more clearer given
the "for" line immediately below.

> +     for s in $(patsubst %.mo,%.so,$(modules-m)); do \

DSOSUF here.

> +             $(INSTALL_DIR) "$(DESTDIR)$(moddir)/$$(dirname $$s)"; \
> +             $(INSTALL_PROG) $(STRIP_OPT) $$s 
> "$(DESTDIR)$(moddir)/$$(dirname $$s)"; \

Paolo

> +     done
> +endif
>  ifneq ($(HELPERS-y),)
>       $(INSTALL_DIR) "$(DESTDIR)$(libexecdir)"
>       $(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)"
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]