targets = Hula.Cal.Test.dll

export MONO_PATH=../../src/Hula.Util:../../src/Hula.Cal:../../src/Hula.ICal:../Hula.TestData:../../src/Hula.Indexer:../../src/Hula.Store:../../lib:../../nunit

all: $(targets)
install: all

MCS=mcs -debug

Hula.Cal.Test.dll_SOURCES = \
	CalIndexerTest.cs   \
	FilterTest.cs       \
	ICalTest.cs

Hula.Cal.Test.dll_LIBS = \
	-r:Hula.TestData.dll \
	-r:Hula.Cal.dll \
	-r:Hula.ICal.dll \
	-r:Hula.Indexing.dll \
	-r:Hula.Store.dll \
	-r:Lucene.Net.dll \
	-r:nunit.framework.dll

Hula.Cal.Test.dll: $(Hula.Cal.Test.dll_SOURCES)
	$(MCS) $($@_LIBS) $($@_SOURCES) $($@_RESOURCES) -target:library -out:$@

clean:
	rm -f *.mdb TestResult.xml $(targets)

test: all
	mono --debug ../../nunit/nunit-console.exe $(targets) $(TEST_FIXTURE)
