Search Results

Found 1 results for "ca0ffe7bd065a91eb11dc19d233854a4" across all boards searching md5.

Anonymous /g/106108612#106141358
8/4/2025, 9:37:39 PM
>>106141250
>im probably missing something obvious but create a task with variable name and use for loop over the filename array? probably any task runner can do that
Yeah, that roughly what I am doing right now. Here is my cargo-make Makefile.toml for assets for example.
The issue is that it doesn't support env variables properly in the condition clause(it applies envs after the condition check[even if it fails], which I have already reported as an issue on the github). And it still feels bloated, just look at this shit.
I really really wish I could make it as simple as something like:
rule png_rgb565
command = ffmpeg -i $in -vcodec rawvideo -f rawvideo -pix_fmt rgb565 $out -y

rule rle
command = cd $repo_root && cargo make rle-encode assets/$in assets/$out

rule wav_pcm
command = ffmpeg -i $in -ar 44100 -ac 1 -af volume=0.1 -f s16le -acodec pcm_s16le $out -y

rule git_clean
command = git clean -Xdff

build BadApple.smol: rle BadApple.raw
build XD.smol: rle XD.raw
build calib1.raw: png_rgb565 calib1.png
build calib1.smol: rle calib1.raw
build calib2.raw: png_rgb565 calib2.png
build calib2.smol: rle calib2.raw
build calib3.raw: png_rgb565 calib3.png
build calib3.smol: rle calib3.raw
build calib4.raw: png_rgb565 calib4.png
build calib4.smol: rle calib4.raw
build calib5.raw: png_rgb565 calib5.png
build calib5.smol: rle calib5.raw
build calib-target.raw: png_rgb565 calib-target.png
build calib-target.smol: rle calib-target.raw
build kutasan.pcm: wav_pcm kutasan.wav

build build: phony BadApple.smol XD.smol \
calib1.smol calib2.smol calib3.smol calib4.smol calib5.smol \
calib-target.smol kutasan.pcm

build clean: git_clean

(translated by AI btw)
But ninja doesn't work well as command runner...
Maybe I could use both ninja and just together, but that sounds like an overkill.