build system/default targets question

Tamar Christina lonetiger at
Tue Mar 24 06:49:20 UTC 2015

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
-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/

and my

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 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/ recipe for target 'all' failed
make: *** [all] Error 2

and I haven't been able to figure out why..
Any thoughts?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list