aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2021-02-27 19:50:31 -0600
committerCalvin Rose <calsrose@gmail.com>2021-02-27 19:50:31 -0600
commitd3e52a2afb908509f2bfc13e1b4ca07f7d8dd190 (patch)
tree8c33562a0e8cd745632ec0062de9808620390abe /Makefile
parentMerge branch 'master' of github.com:janet-lang/janet (diff)
Fix makefile to attach build identifier.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b5a00a70..ec057c54 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ PREFIX?=/usr/local
INCLUDEDIR?=$(PREFIX)/include
BINDIR?=$(PREFIX)/bin
LIBDIR?=$(PREFIX)/lib
-JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 2> /dev/null || echo local)\""
+JANET_BUILD?="\"$(shell git log --pretty=format:'%h' -n 1 2> /dev/null || echo local)\""
CLIBS=-lm -lpthread
JANET_TARGET=build/janet
JANET_LIBRARY=build/libjanet.so