summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ec3f5bc..74ed18d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,9 @@ MODULES := gall gall.util gall.ll \
gall.repository gall.object gall.commit gall.tag gall.tree
LUA_VER := 5.1
-INST_BASE := /usr/local
+PREFIX ?= /usr/local
+
+INST_BASE := $(PREFIX)
INST_ROOT := $(DESTDIR)$(INST_BASE)/share/lua/$(LUA_VER)
C_INST_ROOT := $(DESTDIR)$(INST_BASE)/lib/lua/$(LUA_VER)
@@ -53,6 +55,8 @@ clean:
distclean: clean
find . -name "*~" -delete
+ $(RM) libgit2/tests-clar/clar.h
+ $(RM) libgit2/tests-clar/clar_main.c
.PHONY: example
example: