diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-07-27 20:04:20 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-07-27 22:14:02 +0000 |
commit | ee9be06770223238c6a22430eb874754dd22dfb0 (patch) | |
tree | a9a59673c197e260512526bb07a2a451c42c8565 /Makefile | |
parent | 98d5439dad36f25aa9a2a70cc140d85d94e99bc9 (diff) | |
download | git-ee9be06770223238c6a22430eb874754dd22dfb0.tar.gz git-ee9be06770223238c6a22430eb874754dd22dfb0.tar.xz |
perl: detect new files in MakeMaker builds
While Makefile.PL now finds .pm files on its own, it does not
detect new files after it generates perl/perl.mak.
[ew: commit message, minor tweaks]
ref: http://mid.gmane.org/7vlii51xz4.fsf@alter.siamese.dyndns.org
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -2090,6 +2090,13 @@ $(SCRIPT_LIB) : % : %.sh GIT-SCRIPT-DEFINES ifndef NO_PERL $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak +perl/perl.mak: perl/PM.stamp + +perl/PM.stamp: FORCE + $(QUIET_GEN)find perl -type f -name '*.pm' | sort >$@+ && \ + { cmp $@+ $@ >/dev/null 2>/dev/null || mv $@+ $@; } && \ + $(RM) $@+ + perl/perl.mak: GIT-CFLAGS GIT-PREFIX perl/Makefile perl/Makefile.PL $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F) |