summaryrefslogtreecommitdiffabout
path: root/Makefile
Side-by-side diff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 27e966d..72c189c 100644
--- a/Makefile
+++ b/Makefile
@@ -20,5 +20,10 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
-.PHONY: all git install clean distclean emptycache force-version get-git
+ifdef NEEDS_LIBICONV
+ EXTLIBS += -liconv
+endif
+
+
+.PHONY: all git test install clean distclean emptycache force-version get-git
all: cgit git
@@ -50,4 +55,7 @@ git:
cd git && $(MAKE) libgit.a
+test: all
+ $(MAKE) -C tests
+
install: all
mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)