blob: 5730b5fb8ac1c81985be0aee1574cb00411969ac [file] [log] [blame]
swissChili2b5acc82021-03-13 17:06:42 -08001#!/bin/sh
2
3# Jay MaKe
4
swissChilif1aeec72021-06-07 21:41:15 -07005root="$(pwd)"
swissChili2b5acc82021-03-13 17:06:42 -08006jmkscript="$root/share/jmk/jmk.m4"
7
8for file in $(find -name Jmk); do
9 echo "Processing $file" > /dev/stderr
10 outdir="$(dirname $file)"
11 m4 -D jmk_root="$root" -D jmk_build_cmd="$0" -D jmk_build_dir="$(pwd)" "$jmkscript" "$file" > "$outdir/Makefile" || exit 1
12done