build system/default targets question

Thomas Miedema thomasmiedema at gmail.com
Tue Mar 24 08:59:40 UTC 2015


It looks like other subdirectories are all added to the `BUILD_DIRS`
variable in the toplevel ghc.mk. Did you do that?

Please update the wiki if that was indeed the missing step.

Otherwise, try the debugging hints on this page:
https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying

On Tue, Mar 24, 2015 at 7:49 AM, Tamar Christina <lonetiger at gmail.com>
wrote:

>  Hi All,
>
> I'm trying to figure out the build system, but can't figure out why this
> isn't working:
>
> In the driver folder I created a new folder "ghc-split". The content of
> that is:
> -rw-r--r-- 1 Tamar Users  784 Mar 22 13:18 ghc.mk
> -rw-r--r-- 1 Tamar Users  513 Mar 15 11:40 ghc-split.cabal
> -rw-r--r-- 1 Tamar Users 1611 Mar 15 07:30 LICENSE
> -rw-r--r-- 1 Tamar Users 2162 Mar 15 07:51 Main.lhs
> -rw-r--r-- 1 Tamar Users  518 Mar 22 11:45 Makefile
>
> My Makefile contains:
>
> dir = driver/ghc-split
> TOP = ../..
> include $(TOP)/mk/sub-makefile.mk
>
> and my ghc.mk:
>
> driver/ghc-split_USES_CABAL = YES
> driver/ghc-split_PACKAGE = ghc-split
> driver/ghc-split_dist-install_INSTALL = YES
> driver/ghc-split_dist-install_PROGNAME = ghc-split
> driver/ghc-split_dist-install_INSTALL_INPLACE = YES
> driver/ghc-split_dist-install_WANT_BINDIST_WRAPPER = YES
>
> $(eval $(call build-prog,driver/ghc-split,dist-install,0))
>
> From
> https://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/StandardTargets
> I gather that this should
> work under the standard target make all_driver/ghc-split_dist-install,
> however when I do a make I get:
>
> make[2]: *** No rule to make target 'all_driver/ghc-split'.  Stop.
> Makefile:72: recipe for target 'all_driver/ghc-split' failed
> make[1]: *** [all_driver/ghc-split] Error 2
> make[1]: Leaving directory '/home/Tamar/ghc2'
> ../../mk/sub-makefile.mk:45: recipe for target 'all' failed
> make: *** [all] Error 2
>
> and I haven't been able to figure out why..
> Any thoughts?
>
> Regards,
> Tamar
>>
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20150324/b6dbf769/attachment.html>


More information about the ghc-devs mailing list