These are both used with Hugs (correct?) and hence presumably (unless you no longer use the versions in the fptools CVS tree) you probably don't want me just to strip out all the Hugs-related build stuff.
Yes and yes. (Though the amount of makefile support required for plain GreenCard with Hugs/runhugs is fairly minimal.) In particular, they are used to build the Hugs Graphics Library both on Win32 and (GreenCard only) X11. Now that Hugs supports the ffi spec (I committed the changes to the main tree late last night), I'd like to see the greencard dependency go away - but, given the size of Win32 and Xlib, that isn't going to happen overnight.
On the other hand, I'd like to take advantage of GHC's build system, and integrate into that...
Have you any suggestions on what's the nicest thing I could do?
What we used to do was to have two makefiles: GNUMakefile (or just Makefile) and Makefile.hugs. It's a little tedious keeping them in step but not too bad. If there was a lot of overlap between the two makefiles, you could factor it out into a Makerules file. -- Alastair