<div dir="ltr"><div>It looks like other subdirectories are all added to the `BUILD_DIRS` variable in the toplevel <a href="http://ghc.mk">ghc.mk</a>. Did you do that?</div><div><br></div><div>Please update the wiki if that was indeed the missing step.</div><div><br></div><div>Otherwise, try the debugging hints on this page: <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying">https://ghc.haskell.org/trac/ghc/wiki/Building/Modifying</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 7:49 AM, Tamar Christina <span dir="ltr"><<a href="mailto:lonetiger@gmail.com" target="_blank">lonetiger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div dir="ltr" style="font-family:'Calibri','Segoe UI','Meiryo','Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','sans-serif';font-size:12pt"><div>Hi All,</div><div><br></div><div>I'm trying to figure out the build system, but can't figure out why this isn't working:</div><div><br></div><div>In the driver folder I created a new folder "ghc-split". The content of that is:<br>-rw-r--r-- 1 Tamar Users  784 Mar 22 13:18 <a href="http://ghc.mk" target="_blank">ghc.mk</a><br>-rw-r--r-- 1 Tamar Users  513 Mar 15 11:40 ghc-split.cabal<br>-rw-r--r-- 1 Tamar Users 1611 Mar 15 07:30 LICENSE<br>-rw-r--r-- 1 Tamar Users 2162 Mar 15 07:51 Main.lhs<br>-rw-r--r-- 1 Tamar Users  518 Mar 22 11:45 Makefile</div><div><br></div><div>My Makefile contains:</div><div><br></div><div>dir = driver/ghc-split<br>TOP = ../..<br>include $(TOP)/mk/<a href="http://sub-makefile.mk" target="_blank">sub-makefile.mk</a></div><div><br></div><div>and my <a href="http://ghc.mk" target="_blank">ghc.mk</a>:</div><div><br></div><div>driver/ghc-split_USES_CABAL = YES<br>driver/ghc-split_PACKAGE = ghc-split<br>driver/ghc-split_dist-install_INSTALL = YES<br>driver/ghc-split_dist-install_PROGNAME = ghc-split<br>driver/ghc-split_dist-install_INSTALL_INPLACE = YES<br>driver/ghc-split_dist-install_WANT_BINDIST_WRAPPER = YES</div><div><br></div><div>$(eval $(call build-prog,driver/ghc-split,dist-install,0))</div><div><br></div><div>From <a href="https://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/StandardTargets" target="_blank">https://ghc.haskell.org/trac/ghc/wiki/Building/Architecture/Idiom/StandardTargets</a> I gather that this should <br>work under the standard target make all_driver/ghc-split_dist-install, however when I do a make I get:</div><div><br></div><div>make[2]: *** No rule to make target 'all_driver/ghc-split'.  Stop.<br>Makefile:72: recipe for target 'all_driver/ghc-split' failed<br>make[1]: *** [all_driver/ghc-split] Error 2<br>make[1]: Leaving directory '/home/Tamar/ghc2'<br>../../mk/<a href="http://sub-makefile.mk:45" target="_blank">sub-makefile.mk:45</a>: recipe for target 'all' failed<br>make: *** [all] Error 2</div><div><br></div><div>and I haven't been able to figure out why..<br>Any thoughts?</div><div><br></div><div>Regards,<br>Tamar</div><div>​</div></div>
</div>

<br>_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
<br></blockquote></div><br></div>