From fe3a781de0bf28bb5b5c25913d1724c9a9a83423 Mon Sep 17 00:00:00 2001 From: Rasmus Wriedt Larsen Date: Thu, 11 Dec 2014 21:14:12 +0100 Subject: [PATCH] make will not assume man pages already exists They where removed from the repo by issue #291 --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da9a0b1..a0d8576 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,12 @@ install: echo "... installing $(COMMAND)"; \ cp -f bin/$(COMMAND) $(DESTDIR)$(BINPREFIX); \ ) - cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX) + @if [ -z "$(wildcard man/git-*.1)" ]; then \ + echo "WARNING: man pages not created, use 'make docs' (which requires 'ronn' ruby lib)"; \ + else \ + cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX); \ + echo "cp -f man/git-*.1 $(DESTDIR)$(MANPREFIX)"; \ + fi @mkdir -p $(DESTDIR)/etc/bash_completion.d cp -f etc/bash_completion.sh $(DESTDIR)/etc/bash_completion.d/git-extras