aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-06-24 04:34:36 +0200
committerJunio C Hamano <junkio@cox.net>2006-07-02 17:14:40 -0700
commit63df97ae7baeedc3ce04995139fa0f6bc5eea76c (patch)
tree370d65f4f594a3f551f55f6db7baec094664398c /Makefile
parent8062f81c2d9df5e6552bf267b258ffcc5f647f93 (diff)
downloadgit-63df97ae7baeedc3ce04995139fa0f6bc5eea76c.tar.gz
git-63df97ae7baeedc3ce04995139fa0f6bc5eea76c.tar.xz
Git.pm: Implement Git::version()
Git::version() returns the Git version string. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 730b38a96..dda9b9dd7 100644
--- a/Makefile
+++ b/Makefile
@@ -610,7 +610,10 @@ $(XDIFF_LIB): $(XDIFF_OBJS)
perl/Makefile: perl/Git.pm perl/Makefile.PL
- (cd perl && $(PERL_PATH) Makefile.PL PREFIX="$(prefix)" DEFINE="$(ALL_CFLAGS)" LIBS="$(LIBS)")
+ (cd perl && $(PERL_PATH) Makefile.PL \
+ PREFIX="$(prefix)" \
+ DEFINE="$(ALL_CFLAGS) -DGIT_VERSION=\\\"$(GIT_VERSION)\\\"" \
+ LIBS="$(LIBS)")
doc:
$(MAKE) -C Documentation all