From: Duncan C. <dun...@us...> - 2005-01-19 04:04:40
|
Update of /cvsroot/gtk2hs/gtk2hs/demo/hello In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30483/demo/hello Modified Files: Makefile Log Message: Make all the demos support building with older ghc versions that do not support "auto" packages and so you have to specifiy -package gtk or whatever. Index: Makefile =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/demo/hello/Makefile,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- Makefile 16 Jan 2005 14:15:34 -0000 1.4 +++ Makefile 19 Jan 2005 04:03:56 -0000 1.5 @@ -1,9 +1,12 @@ PROG = helloworld SOURCES = World.hs +PACKAGES = gtk $(PROG) : $(SOURCES) - ghc --make $< -o $@ $(HCFLAGS) + ghc --make $< -o $@ $(HCFLAGS) $(HCEXTRAFLAGS) + +HCEXTRAFLAGS = $(if $(HCNEEDSPACKAGE), $(addprefix -package ,$(PACKAGES))) clean: rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG) |