targets = Hula.Util.Test.dll

export MONO_PATH=../../src/Hula.Util:../../lib:../../nunit

all: $(targets)
install: all

Hula.Util.Test.dll_SOURCES = \
	SubstringQueryTest.cs

Hula.Util.Test.dll_LIBS = \
	-r:Hula.Util.dll \
	-r:Lucene.Net.dll \
	-r:nunit.framework.dll

Hula.Util.Test.dll: $(Hula.Util.Test.dll_SOURCES)
	mcs $($@_LIBS) $($@_SOURCES) -target:library -out:$@

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

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