Default name of target executable

Stephane Bortzmeyer stephane at sources.org
Mon Oct 10 16:17:24 EDT 2005


On Mon, Oct 10, 2005 at 11:40:21AM +0200,
 Wolfgang Jeltsch <wolfgang at jeltsch.net> wrote 
 a message of 28 lines which said:

> Why don't you use a small shell script for this?

Or better, a rule in the Makefile, with suffixes:

%: %.hs
	ghc --make -o $@ $^

So, you just have to type "make LongProgramName".



More information about the Glasgow-haskell-users mailing list