#!../../miniperl -I../../lib

use ExtUtils::MakeMaker;
$Verbose = 0;
&writeMakefile(
	"potential_libs" => "",
	INC => "",
	DISTNAME => "DBI",
	VERSION => "0.2",
);


# A simple MakeMaker postamble to install our example perl driver

sub MY::postamble{
	'
INST_DBD_PMS = $(TOP)/lib/DBD/ExampleP.pm

static:: $(INST_DBD_PMS)

dynamic:: $(INST_DBD_PMS)

$(INST_DBD_PMS): ExampleP.pm
	@$(MKPATH) $(TOP)/lib/DBD
	rm -f $@
	cp ExampleP.pm $(TOP)/lib/DBD/

'
}

sub MY::distclean {
    '
distclean:     clean
	rm -f Makefile *~ t/*~
	cd ..; tar Fcvf "$(DISTNAME)-$(VERSION).tar" $(BASEEXT)
	cd ..; compress "$(DISTNAME)-$(VERSION).tar"
';
}
