X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/2919b91d20c80f92bf63bf19daace44ff2d2e9c9..dabb34af760eff2a6ab8e14927fd173cafb77547:/Makefile diff --git a/Makefile b/Makefile index 27e966d..72c189c 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,12 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ 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 @@ -49,6 +54,9 @@ 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)