mirror of
https://github.com/kennethreitz/bake.git
synced 2026-06-05 23:00:17 +00:00
88f98b4a4359fc43d4d73f55c8c1fd8b9c4fae7b
bake— Kinda like Bash & Make, combined.
I love using Makefiles for one-off tasks in projects. The problem with doing this, is you can't use familiar bash–isms when doing so, as GNU Make doesn't use the familiar Bash sytnax. This project seeks to bridge these works.
WORK IN PROGRESS
Example Bakefile, for use with bake:
echo:
cat Bakefile
format:
black .
full-install: system-deps install
install: node-deps python-deps
argv-example:
set -eux
echo "HELLO, $WHO"
echo $@
dangerous-example: @confirm:secure
rm -fr *
python-deps:
# Example of comments
pipenv install
node-deps:
yarn install
system-deps:
brew install pipenv
Features
- a
Bakefile, which looks and feels like the good parts of aMakefile. - except, you can write real bash code!
- Unlike
Makefile, either tabs or 4 spaces can be used.
Installation
Install bake via:
$ brew install kennethreitz/-/bake --HEAD
Languages
Python
63.8%
Perl
24.3%
Shell
9.1%
Dockerfile
2.8%
