Skip to content
Bokobelin edited this page Oct 19, 2024 · 2 revisions

Welcome to the build wiki!

To create a series of instructions (called a target), you can simply write this:

name():
    @echo off
    echo Hello World

Now you can run it using python path_to_build hello.build name (on windows), or python3 path_to_build hello.build name (on other platforms). Make sure to have Python installed and added to PATH.


To add dependencies to a target, add it's name in parentheses, like this:

target_a():
    @echo off

target_b(target_a):
    echo Hello World

Now run it with target_b as entry point (python path_to_build hello.build target_b) and it will still echo properly!


You can define and use variables like this:

say = echo

target_a():
    @echo off

target_b(target_a):
    $(say) Hello World

Clone this wiki locally