blob: 5730b5fb8ac1c81985be0aee1574cb00411969ac [file] [log] [blame]
#!/bin/sh
# Jay MaKe
root="$(pwd)"
jmkscript="$root/share/jmk/jmk.m4"
for file in $(find -name Jmk); do
echo "Processing $file" > /dev/stderr
outdir="$(dirname $file)"
m4 -D jmk_root="$root" -D jmk_build_cmd="$0" -D jmk_build_dir="$(pwd)" "$jmkscript" "$file" > "$outdir/Makefile" || exit 1
done