[CRIU] [PATCH] Provide installation target without documentation

Tycho Andersen tycho.andersen at canonical.com
Fri Jun 5 08:29:14 PDT 2015


On Fri, Jun 05, 2015 at 05:20:06PM +0200, Adrian Reber wrote:
> The criu(8) man-page is generated using asciidoc. The problem with
> asciidoc is that, due to its dependencies, it is not available on
> all distributions or it is undesired to install all asciidoc
> dependencies. The install target was unconditionally installing and thus
> building the man-page even if not explicitly specified with 'make docs'.
> With the new 'install-criu' target everything besides the man-page is
> installed and the target 'install-man' is only called by the target
> 'install'.
> 
> Signed-off-by: Adrian Reber <areber at redhat.com>

In particular, on Ubuntu installing asciidoc downloads 1.5GB of crap,
since it is built with LaTeX support and downloads all of texlive.

Acked-by: Tycho Andersen <tycho.andersen at canonical.com>

> ---
>  Makefile | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile b/Makefile
> index a3c4abf..9f63624 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -284,7 +284,9 @@ criu-$(CRTOOLSVERSION).tar.bz2:
>  		v$(CRTOOLSVERSION) | bzip2 > $@
>  .PHONY: dist tar
>  
> -install: $(PROGRAM) $(CRIU-LIB) install-man install-crit
> +install: install-criu install-man 
> +
> +install-criu: $(PROGRAM) $(CRIU-LIB) install-crit
>  	$(E) "  INSTALL " $(PROGRAM)
>  	$(Q) mkdir -p $(DESTDIR)$(SBINDIR)
>  	$(Q) install -m 755 $(PROGRAM) $(DESTDIR)$(SBINDIR)
> @@ -316,7 +318,7 @@ install-crit: crit
>  	$(E) "  INSTALL crit"
>  	$(Q) python scripts/crit-setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
>  
> -.PHONY: install install-man install-crit
> +.PHONY: install install-man install-crit install-criu
>  
>  help:
>  	@echo '    Targets:'
> -- 
> 2.4.2
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list