Skip to content

Commit

Permalink
perl: detect new files in MakeMaker builds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gitster authored and Eric Wong committed Jul 27, 2012
1 parent 98d5439 commit ee9be06
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions perl/.gitignore
Expand Up @@ -5,3 +5,4 @@ MYMETA.yml
blib
blibdirs
pm_to_blib
PM.stamp
3 changes: 3 additions & 0 deletions perl/Makefile
Expand Up @@ -20,6 +20,9 @@ clean:
$(RM) ppport.h
$(RM) $(makfile)
$(RM) $(makfile).old
$(RM) PM.stamp

$(makfile): PM.stamp

ifdef NO_PERL_MAKEMAKER
instdir_SQ = $(subst ','\'',$(prefix)/lib)
Expand Down

0 comments on commit ee9be06

Please sign in to comment.