2
0
mirror of https://git.zx2c4.com/cgit/ synced 2024-11-04 06:00:44 +00:00

Let 'make install' clear all cachefiles

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli 2006-12-11 11:23:05 +01:00
parent f5069d88df
commit a581ed8d6c

View File

@ -2,6 +2,7 @@ CGIT_VERSION = 0.1-pre
INSTALL_BIN = /var/www/htdocs/cgit.cgi INSTALL_BIN = /var/www/htdocs/cgit.cgi
INSTALL_CSS = /var/www/htdocs/cgit.css INSTALL_CSS = /var/www/htdocs/cgit.css
CACHE_ROOT = /var/cache/cgit
EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
OBJECTS = config.o html.o cache.o OBJECTS = config.o html.o cache.o
@ -13,6 +14,7 @@ all: cgit
install: all install: all
install cgit $(INSTALL_BIN) install cgit $(INSTALL_BIN)
install cgit.css $(INSTALL_CSS) install cgit.css $(INSTALL_CSS)
rm -rf $(CACHE_ROOT)/*
cgit: cgit.c cgit.h git.h $(OBJECTS) cgit: cgit.c cgit.h git.h $(OBJECTS)
$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit $(OBJECTS) $(EXTLIBS) $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit $(OBJECTS) $(EXTLIBS)