Index

iMakefile

MMO\core\interfaces · 1 symbol · generated 5 Oct 2026

interface

iMakefile

iMakefile.php:8

A build step that knows its output file and the files it depends on, and rebuilds the output only when one of them changed (tWithMakefiles).

interface MMO\core\interfaces\iMakefile
Namespace
MMO\core\interfaces

Methods10

addDependFolder($folder, $inc, $exc, $first)

abstractiMakefile.php:29

Depend on every file of a folder.

abstract function addDependFolder( string $folder, ?string $inc = null, ?string $exc = null, bool $first = false )
$folderstring
$inc = nullnull | stringregex of the files to include
$exc = nullnull | stringregex of the files to exclude
$first = falseboolif true, put them before the existing ones
returns

addDepends($depends, $first)

abstractiMakefile.php:19
abstract function addDepends(array|string $depends, bool $first = false)
$dependsarray | stringone dependency, or several
$first = falseboolif true, put them before the existing ones
returns

autoMake($opts)

abstractiMakefile.php:50
abstract function autoMake(array $opts = [])
$opts = []array
returnsfalse if nothing was made (up to date), otherwise what the build returned

getDepends($basepath)

abstractiMakefile.php:41
abstract function getDepends(string $basepath = '')
$basepath = ''string
returnsthe dependencies, resolved against $basepath when given

isUpToDate($filename)

abstractiMakefile.php:44
abstract function isUpToDate(string $filename)
$filenamestring
returnstrue if $filename exists and no dependency is newer

make($filename, $opts)

abstractiMakefile.php:47
abstract function make(string $filename, array $opts = [])
$filenamestring
$opts = []array
returnsfalse if nothing was made, otherwise what the build returned

removeDepend($depend)

abstractiMakefile.php:38
abstract function removeDepend(string $depend)
$dependstring
returnsfalse if $depend was not a dependency

setDepends($depends)

abstractiMakefile.php:35
abstract function setDepends(array $depends)
$dependsarrayreplaces every dependency
returns