]> git.cameronkatri.com Git - cgit.git/blobdiff - Makefile
Make repo header a link to summary page
[cgit.git] / Makefile
index 71ddc400ac26dc5851346f93944044111298a17c..58a583b339463db275ec54b402c8092a5b8ff62c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,16 +5,16 @@ INSTALL_CSS = /var/www/htdocs/cgit.css
 CACHE_ROOT = /var/cache/cgit
 
 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
-OBJECTS = cache.o parsing.o html.o ui-shared.o ui-repolist.o ui-summary.o
+OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
+       ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c
 
 CFLAGS += -Wall
 
 all: cgit
 
-install: all
+install: all clean-cache
        install cgit $(INSTALL_BIN)
        install cgit.css $(INSTALL_CSS)
-       rm -rf $(CACHE_ROOT)/*
 
 cgit: cgit.c cgit.h git.h $(OBJECTS)
        $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
@@ -25,3 +25,6 @@ $(OBJECTS): cgit.h git.h
 .PHONY: clean
 clean:
        rm -f cgit *.o
+
+clean-cache:
+       rm -rf $(CACHE_ROOT)/*