ui-snapshot.o ui-blob.o ui-tag.o ui-refs.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
cd git && $(MAKE) xdiff/lib.a
cd git && $(MAKE) libgit.a
+test: all
+ $(MAKE) -C tests
+
install: all
mkdir -p $(DESTDIR)$(CGIT_SCRIPT_PATH)
install cgit $(DESTDIR)$(CGIT_SCRIPT_PATH)/$(CGIT_SCRIPT_NAME)