summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLibravatar Petr Baudis <pasky@suse.cz>2006-06-24 04:34:36 +0200
committerLibravatar Junio C Hamano <junkio@cox.net>2006-07-02 17:14:40 -0700
commit63df97ae7baeedc3ce04995139fa0f6bc5eea76c (patch)
tree370d65f4f594a3f551f55f6db7baec094664398c /Makefile
parentGit.pm: Call external commands using execv_git_cmd() (diff)
downloadtgif-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 730b38a968..dda9b9dd79 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