From: Duncan C. <dun...@us...> - 2005-01-16 14:16:14
|
Update of /cvsroot/gtk2hs/gtk2hs/demo/graphic In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14288/demo/graphic Modified Files: Drawing.hs Makefile Log Message: Update all the demos to use the new module names and write new makefiles. Index: Drawing.hs =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/demo/graphic/Drawing.hs,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- Drawing.hs 11 Apr 2003 15:14:05 -0000 1.5 +++ Drawing.hs 16 Jan 2005 14:15:33 -0000 1.6 @@ -1,6 +1,5 @@ -- Example of an drawing graphics onto a canvas. -import Prelude -import Gtk +import Graphics.UI.Gtk main = do initGUI Index: Makefile =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/demo/graphic/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 16 Jan 2005 14:15:34 -0000 1.3 @@ -1,11 +1,9 @@ -TOP = ../.. - -include $(TOP)/mk/config.mk -MAIN = Drawing.hs - -APPNAME = drawing +PROG = drawing +SOURCES = Drawing.hs -NEEDPACKAGES = gtk2 +$(PROG) : $(SOURCES) + ghc --make $< -o $@ $(HCFLAGS) -include $(TOP)/mk/common.mk +clean: + rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG) |