From: Duncan C. <dun...@us...> - 2005-01-19 04:04:41
|
Update of /cvsroot/gtk2hs/gtk2hs/demo/glade In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30483/demo/glade 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/glade/Makefile,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Makefile 16 Jan 2005 14:15:33 -0000 1.6 +++ Makefile 19 Jan 2005 04:03:55 -0000 1.7 @@ -1,9 +1,12 @@ PROG = gladetest SOURCES = GladeTest.hs +PACKAGES = glade $(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) |