#!/bin/sh . ../functions.sh touch config.omk-default cp Makefile.rules subdir2/tools/ make -k | tee make.log grep 'Extra rules goal:' make.log || error "Extra rules was not called" grep 'Main rules goal:' make.log || error "Main rules was not called"