imoisey/makebuilder

Builder for Makefile

0.1.1 2020-06-10 20:44 UTC

This package is auto-updated.

Last update: 2024-04-11 14:03:47 UTC


README

Makebuilder is an easy library for building Makefile.

Installation

composer require imoisey/makebuilder

Usage

use Imoisey\Makebuilder\MakeBuilder;

$makeBuilder = new MakeBuilder();
$makeBuilder->createTarget('install', function ($target) {
   $target->addCommand('@echo --- Install ---');
});

$makeBuilder->build('Makefile');

Makefile:

install:
    @echo --- Install ---

License

MIT