2006-12-10 22:50:16 +00:00
|
|
|
CGIT_VERSION = 0.1-pre
|
2006-12-09 14:18:17 +00:00
|
|
|
|
|
|
|
INSTALL_BIN = /var/www/htdocs/cgit.cgi
|
|
|
|
INSTALL_CSS = /var/www/htdocs/cgit.css
|
2006-12-11 10:23:05 +00:00
|
|
|
CACHE_ROOT = /var/cache/cgit
|
2006-12-09 14:18:17 +00:00
|
|
|
|
|
|
|
EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
|
2006-12-10 22:50:16 +00:00
|
|
|
OBJECTS = config.o html.o cache.o
|
2006-12-10 21:31:36 +00:00
|
|
|
|
|
|
|
CFLAGS += -Wall
|
2006-12-09 14:18:17 +00:00
|
|
|
|
|
|
|
all: cgit
|
|
|
|
|
|
|
|
install: all
|
|
|
|
install cgit $(INSTALL_BIN)
|
|
|
|
install cgit.css $(INSTALL_CSS)
|
2006-12-11 10:23:05 +00:00
|
|
|
rm -rf $(CACHE_ROOT)/*
|
2006-12-09 14:18:17 +00:00
|
|
|
|
2006-12-10 22:50:16 +00:00
|
|
|
cgit: cgit.c cgit.h git.h $(OBJECTS)
|
|
|
|
$(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit $(OBJECTS) $(EXTLIBS)
|
2006-12-09 14:18:17 +00:00
|
|
|
|
2006-12-09 14:29:05 +00:00
|
|
|
$(OBJECTS): cgit.h git.h
|
2006-12-10 22:50:16 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f cgit *.o
|