]> git.cameronkatri.com Git - cgit.git/blob - Makefile
Do not die if tag has no message
[cgit.git] / Makefile
1 CGIT_VERSION = 0.1
2
3 INSTALL_DIR = /var/www/htdocs/cgit
4 CACHE_ROOT = /var/cache/cgit
5
6 EXTLIBS = ../git/libgit.a ../git/xdiff/lib.a -lz -lcrypto
7 OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
8 ui-summary.o ui-log.o ui-view.c ui-tree.c ui-commit.c ui-diff.o
9
10 CFLAGS += -Wall
11
12 ifdef DEBUG
13 CFLAGS += -g
14 endif
15
16 all: cgit
17
18 install: all clean-cache
19 install cgit $(INSTALL_DIR)/cgit.cgi
20 install cgit.css $(INSTALL_DIR)/cgit.css
21
22 cgit: cgit.c cgit.h git.h $(OBJECTS)
23 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
24 $(OBJECTS) $(EXTLIBS)
25
26 $(OBJECTS): cgit.h git.h
27
28 ui-diff.o: xdiff.h
29
30 .PHONY: clean
31 clean:
32 rm -f cgit *.o
33
34 clean-cache:
35 rm -rf $(CACHE_ROOT)/*