]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Make repo header a link to summary page
[ps-cgit] / Makefile
index 4d2ede3d49391e61fd6b7105ffbc833239ecc689..58a583b339463db275ec54b402c8092a5b8ff62c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,16 +6,15 @@ CACHE_ROOT = /var/cache/cgit
 
 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
 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-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 \
@@ -26,3 +25,6 @@ $(OBJECTS): cgit.h git.h
 .PHONY: clean
 clean:
        rm -f cgit *.o
+
+clean-cache:
+       rm -rf $(CACHE_ROOT)/*