Merge branch 'ab/regen-perl-mak-with-different-perl'
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Apr 2017 06:29:33 +0000 (23:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Apr 2017 06:29:33 +0000 (23:29 -0700)
Update the build dependency so that an update to /usr/bin/perl
etc. result in recomputation of perl.mak file.

* ab/regen-perl-mak-with-different-perl:
perl: regenerate perl.mak if perl -V changes

Makefile
index 9b36068ac5e1ac6baf40601fd7db6a404d318228..d595ea38370071e06e36d5d6e94a23b13520597f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1851,6 +1851,7 @@ perl/perl.mak: perl/PM.stamp
 
 perl/PM.stamp: FORCE
        @$(FIND) perl -type f -name '*.pm' | sort >$@+ && \
+       $(PERL_PATH) -V >>$@+ && \
        { cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@; } && \
        $(RM) $@+