Signed-off-by: Lars Hjemli <hjemli@gmail.com>
+install: all clean-cache
install cgit $(INSTALL_BIN)
install cgit.css $(INSTALL_CSS)
install cgit $(INSTALL_BIN)
install cgit.css $(INSTALL_CSS)
cgit: cgit.c cgit.h git.h $(OBJECTS)
$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
cgit: cgit.c cgit.h git.h $(OBJECTS)
$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
.PHONY: clean
clean:
rm -f cgit *.o
.PHONY: clean
clean:
rm -f cgit *.o
+
+clean-cache:
+ rm -rf $(CACHE_ROOT)/*