Update of /cvsroot/gtk2hs/gtk2hs/demo/buttonbox
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14288/demo/buttonbox
Modified Files:
ButtonBox.hs Makefile
Log Message:
Update all the demos to use the new module names and write new makefiles.
Index: ButtonBox.hs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/buttonbox/ButtonBox.hs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ButtonBox.hs 30 Apr 2004 13:45:32 -0000 1.1
+++ ButtonBox.hs 16 Jan 2005 14:15:31 -0000 1.2
@@ -1,6 +1,6 @@
module Main (Main.main) where
-import Gtk
+import Graphics.UI.Gtk
main :: IO ()
main = do
Index: Makefile
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/buttonbox/Makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Makefile 2 May 2004 13:13:25 -0000 1.2
+++ Makefile 16 Jan 2005 14:15:31 -0000 1.3
@@ -1,11 +1,9 @@
-TOP = ../..
-
-include $(TOP)/mk/config.mk
-MAIN = ButtonBox.hs
-
-APPNAME = buttonBox
+PROG = buttonbox
+SOURCES = ButtonBox.hs
-NEEDPACKAGES = gtk2
+$(PROG) : $(SOURCES)
+ ghc --make $< -o $@ $(HCFLAGS)
-include $(TOP)/mk/common.mk
+clean:
+ rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG)
|