The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
use ExtUtils::MakeMaker;

sub MY::postamble {
	return <<END;
ChangeLog: Makefile
	git log --pretty=fuller --decorate . >ChangeLog

META.yml: Makefile
	touch META.yml

END
}

WriteMakefile(
	NAME              => 'Flickr::Upload',
	VERSION_FROM      => 'lib/Flickr/Upload.pm',
	ABSTRACT          => 'Module for uploading images to flickr.com',
	AUTHOR            => 'Christophe Beauregard <cpb@cpan.org>',
	PREREQ_PM         => {
		'LWP::UserAgent' => 1,
		'HTTP::Request::Common' => 1,
		'Flickr::API' => 1.09,
		'Pod::Usage' => 1,
		'Getopt::Long' => 1,
		'XML::Simple' => 2.0,
	},
	'EXE_FILES' => [ 'flickr_upload' ],
	'clean' => { FILES => 'ChangeLog META.yml' },
	'depend' => {'create_distdir' => 'ChangeLog  META.yml'},
);