Skip to content

Commit 3d49f72

Browse files
avargitster
authored andcommitted
Makefile: regenerate perl/build/* if GIT-PERL-DEFINES changes
Change the logic to generate perl/build/* to regenerate those files if GIT-PERL-DEFINES changes. This ensures that e.g. changing localedir will result in correctly re-generated files. I don't think that ever worked. The brokenness pre-dates my 20d2a30 (Makefile: replace perl/Makefile.PL with simple make rules, 2017-12-10). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4070c9e commit 3d49f72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2676,7 +2676,7 @@ endif
26762676
NO_PERL_CPAN_FALLBACKS_SQ = $(subst ','\'',$(NO_PERL_CPAN_FALLBACKS))
26772677
endif
26782678

2679-
perl/build/lib/%.pm: perl/%.pm
2679+
perl/build/lib/%.pm: perl/%.pm GIT-PERL-DEFINES
26802680
$(QUIET_GEN)mkdir -p $(dir $@) && \
26812681
sed -e 's|@@LOCALEDIR@@|$(perl_localedir_SQ)|g' \
26822682
-e 's|@@NO_PERL_CPAN_FALLBACKS@@|$(NO_PERL_CPAN_FALLBACKS_SQ)|g' \

0 commit comments

Comments
 (0)