#!/bin/sh x="output" for s in *.py do echo -n "${s%.py}/output:" for t in $(seq 0 255) do u="$(printf '%02X' $t)" echo -n " ${s%.py}/$u/output" done echo echo ' cat $^ >$@.new && mv $@.new $@' for t in $(seq 0 255) do u="$(printf '%02X' $t)" echo "${s%.py}/$u/$x: $s tobin.py inject" echo " ./inject ${s%.py} $t" done done >deps.mk