makepp

 view release on metacpan or  search on metacpan

makeppgraph  view on Meta::CPAN

  }
}

# .o in any dir depending on a C or C++ source
sub c2o($) { merge $_[0], '>o', qr/\.o(?:bj)?/, qr/\.(?:c(|[xp+])\1|cc|CC?)/ }

# basename or .exe in any dir depending on same .o file
sub exe($) { merge $_[0], '*', qr/(?:\.exe)?/, qr/\.o/ }

# Same name in different directories, like headers published to a central include dir.
sub x2($) { merge $_[0], '*2', '', '' }



package Mpp;



# Styles which can be overridden.
our %head = ( dot => <<EOSdot, html => <<EOShtml, txt => '', udg => "[\n" );
// Generated by makeppgraph

t/builtins.test  view on Meta::CPAN

perl { %hash = (aa => 1, aaa => "1\n2", TITLE => 'Test') }
%.out: title.tmpl %.tmpl template.xml pi.xml
	&template -v -o $(output) -h\\%hash THIS=foo THAT=bar:$$1: $(inputs 1 2)
	&template -dv --simple=|<|/>| --multiline=|<|>|</|>| -h '+{%hash, bb => 2}' $(input 3) -o >>$(output)
	&template --defined --simple='_&(?!#)_;_' --multiline='_<\?_(?=\?>)_\?>_' $(input 4) -o >>$(output)
	&template -vS -o >>$(output) -h\\%hash THIS=foo THAT=bar:$$1: $(input 2)


# Test &uniq
# helper function for --compare
sub c0(\$) { substr ${$_[0]}, 0, 1 }
uniq.out: uniq.in sed.in
	&uniq $(input) -o $(output)
	&uniq -c 'c0( $$a ) ne c0 $$b' $(input) -o >>$(output)
	&uniq -S $(inputs 2 1) -o >>$(output)
	&uniq -S $(inputs 1 1) -o >>$(output) # Must reemit file name first time.

install_log:
	&rm -f .install_log installog
	&install --directory --mode=750 dest
	$(IGNINST)&install -v --mode=640 grep.in dest



( run in 0.924 second using v1.01-cache-2.11-cpan-13bb782fe5a )