1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| | diff --git a/src/Makefile b/src/Makefile
index 389f296..fc15721 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,7 +10,10 @@ LIBSRC=awk
# If you are lucky enough to have an Icon compiler icont, use ICONC=iconc
ICONC=icont
ICONT=icont
+
+ifeq ($(GITVERSION),)
GITVERSION=`./gitversion`
+endif
# BIN is where the commands (notangle, noweave, nountangle, noroots) land
# LIB is where the pieces of the pipes (nt, markup, unmarkup) are stored
diff --git a/src/c/Makefile b/src/c/Makefile
index ed7b72f..78af774 100644
--- a/src/c/Makefile
+++ b/src/c/Makefile
@@ -93,8 +93,8 @@ fakepretty: $(FPOBJS)
$(CC) $(CFLAGS) -o $@ $(FPOBJS)
-gitversion.c: ../gitversion ../../.git/refs/heads/master
- echo 'const char gitversion[] = "'"$$(../gitversion -prefix)"'";' > $@
+gitversion.c: #../gitversion ../../.git/refs/heads/master
+ echo 'const char gitversion[] = "'"$$GITVERSION"'";' > $@
columns.o: columns.h
|