X-Git-Url: https://git.distorted.org.uk/~mdw/tig/blobdiff_plain/24bd80d642da4c0cddc30e0ef05ab84e0f0bcf8a..e7a724d902feb81f1cb009d48316aac6de2b5cf8:/Makefile diff --git a/Makefile b/Makefile index c3e2a11..c1fd656 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,13 @@ PREFIX = $(HOME) -LDFLAGS = -lcurses -CFLAGS = '-DVERSION="$(VERSION)"' -Wall +LDLIBS = -lcurses +CFLAGS = -Wall DFLAGS = -g -DDEBUG PROGS = tig DOCS = tig.1.txt tig.1.html tig.1 README.html -VERSION = $(shell git-describe) + +ifneq (,$(wildcard .git)) +CFLAGS += '-DVERSION="$(shell git-describe)"' +endif all: $(PROGS) all-debug: $(PROGS)