<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20689">
<style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, 
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, 
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" 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 ghc.mk<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/sub-makefile.mk</div><div><br></div><div>and my ghc.mk:</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="_parent">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/sub-makefile.mk:45: 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 data-signatureblock="true">​</div></div>
</body>
</html>