From: Duncan C. <dun...@us...> - 2005-01-19 04:04:41
|
Update of /cvsroot/gtk2hs/gtk2hs/demo/gconf In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30483/demo/gconf 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/gconf/Makefile,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- Makefile 16 Jan 2005 14:15:32 -0000 1.2 +++ Makefile 19 Jan 2005 04:03:54 -0000 1.3 @@ -1,9 +1,12 @@ PROG = gconfdemo SOURCES = GConfDemo.hs +PACKAGES = gconf $(PROG) : $(SOURCES) - ghc --make $< -o $@ -fglasgow-exts -fallow-overlapping-instances $(HCFLAGS) + ghc --make $< -o $@ -fglasgow-exts -fallow-overlapping-instances $(HCFLAGS) $(HCEXTRAFLAGS) + +HCEXTRAFLAGS = $(if $(HCNEEDSPACKAGE), $(addprefix -package ,$(PACKAGES))) clean: rm -f $(SOURCES:.hs=.hi) $(SOURCES:.hs=.o) $(PROG) |