prefix=@prefix@
exec_prefix=@exec_prefix@
sysconfdir=@sysconfdir@
bindir=@bindir@
sbindir=@sbindir@
libdir=@libdir@
datarootdir=@datarootdir@
datadir=@datadir@
includedir=@includedir@
mandir=@mandir@
top_srcdir=@top_srcdir@

export BUILDDIR=@abs_top_builddir@
PERLDIRS=tools/modules tools/donuts tools/mapper tools/scripts \
         tools/dnspktflow tools/maketestzone tools/etc tools/drawvalmap

QUIET=@


TEST_FILES=t/*.t


all :: authtest


authtest : $(TEST_FILES)
	$(QUIET) for i in $(TEST_FILES) ; do \
	  perl $$i ;               \
        done

verbose : $(TEST_FILES)
	$(QUIET) for i in $(TEST_FILES) ; do \
	  perl $$i -v;               \
        done

test : trustman

zonesigner:
	perl t/010zonesigner.t

zonesignerv :
	perl t/010zonesigner.t -v

zonesignersoas:
	perl t/011zonesigner-soa-tests.t

zonesignersoasv:
	perl t/011zonesigner-soa-tests.t -v

donuts:
	perl t/020donuts.t

donutsv :
	perl t/020donuts.t -v


donutsd:
	perl t/025donutsd.t

donutsdv :
	perl t/025donutsd.t -v


trustman:
	perl t/030trustman.t

trustmanv :
	perl t/030trustman.t -v


rollerd:
	perl t/040rollerd.t

rollerdv :
	perl t/040rollerd.t -v


trustman-rollerd:
	perl t/050trustman-rollerd.t

trustman-rollerdv :
	perl t/050trustman-rollerd.t -v


clean :
	rm -rf zones trustman donuts donutsd rollerd trustman-rollerd

.PHONY : zonesigner donuts donutsd trustman rollerd trustman-rollerd clean
