GNU make file in ghc/utils folder

Chris R. Timmons chris at
Fri Feb 23 19:18:59 UTC 2018

On 2/23/2018 8:26 AM, Ben Gamari wrote:
> "Chris R. Timmons" <chris at> writes:
>> I'm trying to add a new utility to the $(TOP)/ghc/utils folder. The
>> utility has a make file, but I can't seem to get it to play nice with
>> GHC's build system.  The error I receive is "No rule to make target...".
>> Here's a simple test environment that demonstrates the problem:
> snip
>> What am I not understanding?
> I believe you need to add utils/testmake to the BUILD_SUBDIRS variable
> in the root
> Cheers,
> - Ben

That did the trick.

I somehow stumbled upon, 
and was using that as a guide.  It looks like I missed reading, where 
BUILD_DIRS is documented.  My bad.

Thanks for the quick response.


More information about the ghc-devs mailing list