Unidiff1 files changed, 18 insertions, 11 deletions
|
diff --git a/Makefile b/Makefile index c2a5736..e69ad7e 100644 --- a/ Makefile+++ b/ Makefile |
|
@@ -1,5 +1,2 @@ |
1 | CGIT_VERSION = 0.5 |
| |
2 | |
| |
3 | prefix = /var/www/htdocs/cgit |
1 | prefix = /var/www/htdocs/cgit |
4 | |
| |
5 | SHA1_HEADER = <openssl/sha.h> |
2 | SHA1_HEADER = <openssl/sha.h> |
@@ -14,2 +11,13 @@ CGIT_SCRIPT_NAME = cgit.cgi |
14 | |
11 | |
| |
12 | |
| |
13 | CGIT_VERSION = 0.5 |
| |
14 | |
| |
15 | all: cgit |
| |
16 | |
| |
17 | VERSION: |
| |
18 | gen-version.sh |
| |
19 | |
| |
20 | -include VERSION |
| |
21 | |
| |
22 | |
15 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
23 | EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto |
@@ -44,8 +52,3 @@ endif |
44 | |
52 | |
45 | # |
53 | cgit: cgit.c cgit.h VERSION $(OBJECTS) |
46 | # basic build rules |
| |
47 | # |
| |
48 | all: cgit |
| |
49 | |
| |
50 | cgit: cgit.c cgit.h $(OBJECTS) |
| |
51 | $(CC) $(CFLAGS) cgit.c -o cgit $(OBJECTS) $(EXTLIBS) |
54 | $(CC) $(CFLAGS) cgit.c -o cgit $(OBJECTS) $(EXTLIBS) |
@@ -67,3 +70,3 @@ install: all clean-cache |
67 | clean-cgit: |
70 | clean-cgit: |
68 | rm -f cgit *.o |
71 | rm -f cgit VERSION *.o |
69 | |
72 | |
@@ -85,3 +88,7 @@ distclean: distclean-cgit distclean-sub |
85 | |
88 | |
| |
89 | version: clean-cgit |
| |
90 | ./gen-version.sh |
| |
91 | make |
| |
92 | |
86 | .PHONY: all install clean clean-cgit clean-sub clean-cache \ |
93 | .PHONY: all install clean clean-cgit clean-sub clean-cache \ |
87 | distclean distclean-cgit distclean-sub |
94 | distclean distclean-cgit distclean-sub release version |
|