Browse Source

Makefile: use 'git describe' for version if possible.

Heikki Hokkanen 16 years ago
parent
commit
48919ff425
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Makefile

+ 1
- 1
Makefile View File

3
 RESOURCEDIR=$(PREFIX)/share/gitstats
3
 RESOURCEDIR=$(PREFIX)/share/gitstats
4
 RESOURCES=gitstats.css sortable.js *.gif
4
 RESOURCES=gitstats.css sortable.js *.gif
5
 BINARIES=gitstats
5
 BINARIES=gitstats
6
-VERSION=$(shell git rev-parse --short HEAD)
6
+VERSION=$(shell git describe 2>/dev/null || git rev-parse --short HEAD)
7
 
7
 
8
 all: help
8
 all: help
9
 
9