GNU make file in ghc/utils folder

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


On 2/23/2018 8:26 AM, Ben Gamari wrote:
> "Chris R. Timmons" <chris at crtimmonsinc.com> 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 ghc.mk.
>
> Cheers,
>
> - Ben

That did the trick.

I somehow stumbled upon 
https://ghc.haskell.org/trac/ghc/wiki/Attic/Building/BuildSystem/New, 
and was using that as a guide.  It looks like I missed reading 
https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying, where 
BUILD_DIRS is documented.  My bad.

Thanks for the quick response.

Chris.



More information about the ghc-devs mailing list