summaryrefslogtreecommitdiffabout
path: root/Makefile
Side-by-side diff
Diffstat (limited to 'Makefile') (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4d2ede3..2a4d62a 100644
--- a/Makefile
+++ b/Makefile
@@ -9,20 +9,22 @@ 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
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 \
$(OBJECTS) $(EXTLIBS)
$(OBJECTS): cgit.h git.h
.PHONY: clean
clean:
rm -f cgit *.o
+
+clean-cache:
+ rm -rf $(CACHE_ROOT)/*