3 prefix = /var/www/htdocs/cgit
6 CACHE_ROOT = /var/cache/cgit
7 EXTLIBS = $(gitsrc)/libgit.a $(gitsrc)/xdiff/lib.a -lz -lcrypto
8 OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
9 ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c ui-diff.o
19 install: all clean-cache
21 install cgit $(prefix)/cgit.cgi
22 install cgit.css $(prefix)/cgit.css
24 cgit: cgit.c cgit.h git.h $(OBJECTS) $(gitsrc)/libgit.a
25 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
28 $(OBJECTS): cgit.h git.h
41 rm -rf $(CACHE_ROOT)/*