Skip to content

myferr/bake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image

bake

License Crates.io Rust Lines of Code Contributions welcome

CI
Build Build


bake is a minimal and fast alternative to Make, written in Rust made for developers to improve efficiency. bake uses its own "Bakefile" system with a YAML-like syntax, but also supports simple Makefiles.

Installation

Remote (install.c)

Linux/macOS:

curl -sL https://raw.githubusercontent.com/myferr/bake/main/install.c | gcc -xc -o install - && ./install && rm install

Windows (PowerShell):

(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/myferr/bake/main/install.c").Content | gcc -xc -o install - && ./install && Remove-Item install, install.exe -ErrorAction SilentlyContinue

Crates

Cross-platform (Cargo):

cargo install bake-tool

Homebrew

Cross-platform (brew):

brew tap myferr/bake && brew install bake

Usage

Run bake in the directory containing a Bakefile or Makefile:

bake [task]

If no task is specified, the default task (if defined) is executed.

You can list all tasks with:

bake --list

Commands

bake supports these commands and options:

Command/Option Description
bake Runs the default task
bake <task> Runs the specified task
bake --list Lists all available tasks
bake --help Shows help information
bake --makefile <task> Run a task from a Makefile

Bakefile

Bakefiles use a YAML-like syntax defining tasks and their commands:

build:
    cargo build

test:
    cargo test

clean:
    cargo clean

default: build

Each task maps to one or more shell commands executed in order. The default task is run when no task is specified.

About

Rust-based Make alternative

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors