Update of /cvsroot/gtk2hs/gtk2hs/demo/mozembed
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14288/demo/mozembed
Modified Files:
Makefile TestEmbedMoz.hs
Log Message:
Update all the demos to use the new module names and write new makefiles.
Index: TestEmbedMoz.hs
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/mozembed/TestEmbedMoz.hs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- TestEmbedMoz.hs 17 Dec 2004 22:02:54 -0000 1.1
+++ TestEmbedMoz.hs 16 Jan 2005 14:15:35 -0000 1.2
@@ -1,9 +1,9 @@
-- A Test Program for the Gtk2 Mozilla Widget
--
-import Gtk
+import Graphics.UI.Gtk
import Graphics.UI.Gtk.MozEmbed
-import System
+import System (getArgs, getEnv, getProgName)
main :: IO ()
Index: Makefile
===================================================================
RCS file: /cvsroot/gtk2hs/gtk2hs/demo/mozembed/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Makefile 17 Dec 2004 22:02:54 -0000 1.1
+++ Makefile 16 Jan 2005 14:15:35 -0000 1.2
@@ -1,6 +1,9 @@
-TestEmbedMoz : TestEmbedMoz.hs
- ghc -package mozembed TestEmbedMoz.hs -o TestEmbedMoz
+PROG = testembedmoz
+SOURCES = TestEmbedMoz.hs
+
+$(PROG) : $(SOURCES)
+ ghc --make $< -o $@ $(HCFLAGS)
clean:
- rm TestEmbedMoz TestEmbedMoz.hi TestEmbedMoz.o
+ rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG)
|