From: Duncan C. <dun...@us...> - 2005-01-12 02:24:15
|
Update of /cvsroot/gtk2hs/gtk2hs/demo/hello In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2551/demo/hello Modified Files: World.hs Makefile Log Message: Update the hello world demo to work with the new module names. Add a simple makefile. The old makefile relied on the old build system. This makefile will not build 'in-place' it requires everything to be installed. Index: World.hs =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/demo/hello/World.hs,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- World.hs 3 Dec 2002 13:20:06 -0000 1.2 +++ World.hs 12 Jan 2005 02:24:05 -0000 1.3 @@ -1,6 +1,6 @@ module Main (Main.main) where -import Gtk +import Graphics.UI.Gtk -- If you return False in the "delete_event" signal handler, GTK will -- emit the "destroy" signal. Index: Makefile =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/demo/hello/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile 2 May 2004 13:13:26 -0000 1.2 +++ Makefile 12 Jan 2005 02:24:05 -0000 1.3 @@ -1,11 +1,6 @@ -TOP = ../.. - -include $(TOP)/mk/config.mk - -MAIN = World.hs - -APPNAME = helloWorld -NEEDPACKAGES = gtk2 +helloworld : World.hs + ghc --make $< -o $@ -include $(TOP)/mk/common.mk +clean: + rm -f World.hi World.o helloworld |