Git.pm: Implement Git::version()
[gitweb.git] / Makefile
index 730b38a968ccc678985b037bfb314c0f96e22315..dda9b9dd79adaa90ded1a646d58634da0b88e9ca 100644 (file)
--- 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