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