Jamrules #1

  • //
  • guest/
  • jmash/
  • p4perl/
  • Jamrules
  • View
  • Commits
  • Open Download .zip Download (512 B)
# p4-perl Jamrules

SubDir   AllP4 p4-perl ;
SubRules AllP4 p4 : P4 ;

PERL ?= perl ;

if $(OS) = "DARWIN" || $(OS) = "MACOSX"
{
	MAKE  ?= make ;
	SUFSO ?= .bundle ;
}
else if $(NT)
{
    MAKE  ?= nmake ;
    SUFSO ?= .dll ;
}
else
{
	MAKE  ?= make ;
	SUFSO ?= .so ;
}

rule MakeP4Perl
{
    local _so = $(<)$(SUFSO) ;

	Depends $(<) : $(_so) ;
    Depends all : $(<) ;
    Always $(_so) ;
	MakeP4Perl1 $(_so) ;
}

actions MakeP4Perl1
{
    $(PERL) Makefile.PL --apidir $(P4APIDIR)
    $(MAKE) && $(MAKE) dist
}
# Change User Description Committed
#1 19582 jmash Initial fork of P4Perl.
//guest/perforce_software/p4perl/main/Jamrules
#1 15920 Matt Attaway Move p4perl files into the main directory
//guest/perforce_software/p4perl/Jamrules
#1 8486 Paul Allen Initial population of P4PERL

from:
   //depot/main/p4-perl/...@565514
   //depot/main/p4-doc/user/p4perlnotes.txt@565514