Skip to content

Commit 075321c

Browse files
tmzullingergitster
authored andcommitted
Makefile: add NO_PERL_CPAN_FALLBACKS knob
We include some perl modules which are not part of the core perl install, as a convenience. This allows us to rely on those modules in our perl-based tools and scripts without requiring users to install the modules from CPAN or their operating system packages. Users whose operating system provides these modules and packagers of Git often don't want to ship or use these bundled modules. Allow these users to set NO_PERL_CPAN_FALLBACKS to avoid installing the bundled modules. Signed-off-by: Todd Zullinger <[email protected]> Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 382029f commit 075321c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ all::
296296
#
297297
# Define NO_PERL if you do not want Perl scripts or libraries at all.
298298
#
299+
# Define NO_PERL_CPAN_FALLBACKS if you do not want to install bundled
300+
# copies of CPAN modules that serve as a fallback in case the modules
301+
# are not available on the system. This option is intended for
302+
# distributions that want to use their packaged versions of Perl
303+
# modules, instead of the fallbacks shipped with Git.
304+
#
299305
# Define PYTHON_PATH to the path of your Python binary (often /usr/bin/python
300306
# but /usr/bin/python2.7 on some platforms).
301307
#
@@ -2305,8 +2311,10 @@ LIB_CPAN_GEN := $(patsubst perl/%.pm,perl/build/lib/%.pm,$(LIB_CPAN))
23052311

23062312
ifndef NO_PERL
23072313
all:: $(LIB_PERL_GEN)
2314+
ifndef NO_PERL_CPAN_FALLBACKS
23082315
all:: $(LIB_CPAN_GEN)
23092316
endif
2317+
endif
23102318

23112319
perl/build/lib/%.pm: perl/%.pm
23122320
$(QUIET_GEN)mkdir -p $(dir $@) && \

0 commit comments

Comments
 (0)