summaryrefslogtreecommitdiffabout
authorLars Hjemli <hjemli@gmail.com>2007-05-11 10:15:44 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-05-11 10:15:44 (UTC)
commitdad80d1ff8e065002cdf4e37252164a7f8517a5b (patch) (unidiff)
tree9ba279170b249b872ca8296c269788ff086b776c
parent5a217ed3e04a6ef7b066ded446582c0dd0fc5d3e (diff)
downloadcgit-dad80d1ff8e065002cdf4e37252164a7f8517a5b.zip
cgit-dad80d1ff8e065002cdf4e37252164a7f8517a5b.tar.gz
cgit-dad80d1ff8e065002cdf4e37252164a7f8517a5b.tar.bz2
Tag release v0.3v0.3
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 138f261..86b2a70 100644
--- a/Makefile
+++ b/Makefile
@@ -1,67 +1,67 @@
1CGIT_VERSION = 0.2 1CGIT_VERSION = 0.3
2 2
3prefix = /var/www/htdocs/cgit 3prefix = /var/www/htdocs/cgit
4 4
5SHA1_HEADER = <openssl/sha.h> 5SHA1_HEADER = <openssl/sha.h>
6 6
7CACHE_ROOT = /var/cache/cgit 7CACHE_ROOT = /var/cache/cgit
8EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto 8EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto
9OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \ 9OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
10 ui-summary.o ui-log.o ui-view.o ui-tree.o ui-commit.o ui-diff.o \ 10 ui-summary.o ui-log.o ui-view.o ui-tree.o ui-commit.o ui-diff.o \
11 ui-snapshot.o ui-blob.o 11 ui-snapshot.o ui-blob.o
12 12
13CFLAGS += -Wall 13CFLAGS += -Wall
14 14
15ifdef DEBUG 15ifdef DEBUG
16 CFLAGS += -g 16 CFLAGS += -g
17endif 17endif
18 18
19CFLAGS += -Igit -DSHA1_HEADER='$(SHA1_HEADER)' 19CFLAGS += -Igit -DSHA1_HEADER='$(SHA1_HEADER)'
20 20
21 21
22 22
23 23
24# 24#
25# basic build rules 25# basic build rules
26# 26#
27all: cgit 27all: cgit
28 28
29cgit: cgit.c cgit.h $(OBJECTS) 29cgit: cgit.c cgit.h $(OBJECTS)
30 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \ 30 $(CC) $(CFLAGS) -DCGIT_VERSION='"$(CGIT_VERSION)"' cgit.c -o cgit \
31 $(OBJECTS) $(EXTLIBS) 31 $(OBJECTS) $(EXTLIBS)
32 32
33$(OBJECTS): cgit.h git/libgit.a 33$(OBJECTS): cgit.h git/libgit.a
34 34
35git/libgit.a: 35git/libgit.a:
36 ./submodules.sh -i 36 ./submodules.sh -i
37 $(MAKE) -C git 37 $(MAKE) -C git
38 38
39# 39#
40# phony targets 40# phony targets
41# 41#
42install: all clean-cache 42install: all clean-cache
43 mkdir -p $(prefix) 43 mkdir -p $(prefix)
44 install cgit $(prefix)/cgit.cgi 44 install cgit $(prefix)/cgit.cgi
45 install cgit.css $(prefix)/cgit.css 45 install cgit.css $(prefix)/cgit.css
46 46
47clean-cgit: 47clean-cgit:
48 rm -f cgit *.o 48 rm -f cgit *.o
49 49
50distclean-cgit: clean-cgit 50distclean-cgit: clean-cgit
51 git clean -d -x 51 git clean -d -x
52 52
53clean-sub: 53clean-sub:
54 $(MAKE) -C git clean 54 $(MAKE) -C git clean
55 55
56distclean-sub: clean-sub 56distclean-sub: clean-sub
57 $(shell cd git && git clean -d -x) 57 $(shell cd git && git clean -d -x)
58 58
59clean-cache: 59clean-cache:
60 rm -rf $(CACHE_ROOT)/* 60 rm -rf $(CACHE_ROOT)/*
61 61
62clean: clean-cgit clean-sub 62clean: clean-cgit clean-sub
63 63
64distclean: distclean-cgit distclean-sub 64distclean: distclean-cgit distclean-sub
65 65
66.PHONY: all install clean clean-cgit clean-sub clean-cache \ 66.PHONY: all install clean clean-cgit clean-sub clean-cache \
67 distclean distclean-cgit distclean-sub 67 distclean distclean-cgit distclean-sub