]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Makefile: allow building without perl
authorJeff King <peff@peff.net>
Fri, 3 Apr 2009 19:32:20 +0000 (15:32 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Apr 2009 05:14:56 +0000 (22:14 -0700)
commit499c29394ce1ead3ebd29b0d3c8014cdb7a32e63
tree001f9ccae307ef32eab9e60f426aa1e80342bd03
parent6da14ee14f85fe5766780e1cbe8d42d385638e9e
Makefile: allow building without perl

For systems with a missing or broken perl, it is nicer to
explicitly say "we don't want perl" because:

  1. The Makefile knows not to bother with Perl-ish things
     like Git.pm.

  2. We can print a more user-friendly error message
     than "foo is not a git command" or whatever the broken
     perl might barf

  3. Test scripts that require perl can mark themselves and
     such and be skipped

This patch implements parts (1) and (2). The perl/
subdirectory is skipped entirely, gitweb is not built, and
any git commands which rely on perl will print a
human-readable message and exit with an error code.

This patch is based on one from Robin H. Johnson.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
unimplemented.sh [new file with mode: 0644]