summaryrefslogtreecommitdiffabout
path: root/Makefile
authorMichael Krelin <hacker@klever.net>2007-07-02 00:29:11 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2007-07-03 19:30:05 (UTC)
commit71ebcbe23ab548e5c0ad40aa8be5741654ed3201 (patch) (side-by-side diff)
treec3f4e7b5aaf6c47713a64a1d01e7330ec3397754 /Makefile
parent51f6547879e2516b9850b0b3c51df044c16a8a52 (diff)
downloadcgit-71ebcbe23ab548e5c0ad40aa8be5741654ed3201.zip
cgit-71ebcbe23ab548e5c0ad40aa8be5741654ed3201.tar.gz
cgit-71ebcbe23ab548e5c0ad40aa8be5741654ed3201.tar.bz2
make gen-version.sh run even if . is not in PATH
Signed-off-by: Michael Krelin <hacker@klever.net> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'Makefile') (more/less context) (show whitespace changes)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e69ad7e..cea09f1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,42 +1,42 @@
prefix = /var/www/htdocs/cgit
SHA1_HEADER = <openssl/sha.h>
CACHE_ROOT = /var/cache/cgit
CGIT_CONFIG = /etc/cgitrc
CGIT_SCRIPT_NAME = cgit.cgi
#
# Let the user override the above settings.
#
-include cgit.conf
CGIT_VERSION = 0.5
all: cgit
VERSION:
- gen-version.sh
+ sh gen-version.sh
-include VERSION
EXTLIBS = git/libgit.a git/xdiff/lib.a -lz -lcrypto
OBJECTS = shared.o cache.o parsing.o html.o ui-shared.o ui-repolist.o \
ui-summary.o ui-log.o ui-tree.o ui-commit.o ui-diff.o \
ui-snapshot.o ui-blob.o
CFLAGS += -Wall
ifdef DEBUG
CFLAGS += -g
endif
CFLAGS += -Igit
CFLAGS += -DSHA1_HEADER='$(SHA1_HEADER)'
CFLAGS += -DCGIT_VERSION='"$(CGIT_VERSION)"'
CFLAGS += -DCGIT_CONFIG='"$(CGIT_CONFIG)"'
CFLAGS += -DCGIT_SCRIPT_NAME='"$(CGIT_SCRIPT_NAME)"'
#
# If make is run on a nongit platform, get the git sources as a tarball.