3 INSTALL_DIR = /var/www/htdocs/cgit
4 CACHE_ROOT = /var/cache/cgit
6 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
7 OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
8 ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c ui-diff.o
18 install: all clean-cache
19 install cgit $(INSTALL_DIR)/cgit.cgi
20 install cgit.css $(INSTALL_DIR)/cgit.css
22 cgit: cgit.c cgit.h git.h $(OBJECTS)
23 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
26 $(OBJECTS): cgit.h git.h
35 rm -rf $(CACHE_ROOT)/*