summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (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
@@ -11,12 +11,11 @@ OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
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)
@@ -25,4 +24,7 @@ $(OBJECTS): cgit.h git.h
.PHONY: clean
clean:
rm -f cgit *.o
+
+clean-cache:
+ rm -rf $(CACHE_ROOT)/*