From caff4d7d18e72f7f1817c5ae782853bb946fa761 Mon Sep 17 00:00:00 2001 From: Andrew Lazarus Date: Mon, 3 Nov 2014 12:01:20 -0800 Subject: [PATCH] Fix Makefile `make man` to work w/o .git Signed-off-by: Heikki Hokkanen --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9c21cfb..8476553 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ BINDIR=$(PREFIX)/bin RESOURCEDIR=$(PREFIX)/share/gitstats RESOURCES=gitstats.css sortable.js *.gif BINARIES=gitstats -VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD) +VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD 2>/dev/null || date +%Y-%m-%d) SEDVERSION=perl -pi -e 's/VERSION = 0/VERSION = "$(VERSION)"/' -- all: help @@ -29,6 +29,6 @@ release: @$(RM) gitstats.tmp man: - pod2man --center "User Commands" -r $(shell git rev-parse --short HEAD) doc/gitstats.pod > doc/gitstats.1 + pod2man --center "User Commands" -r $(VERSION) doc/gitstats.pod > doc/gitstats.1 .PHONY: all help install release