summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.PL16
-rw-r--r--dist.ini6
2 files changed, 22 insertions, 0 deletions
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644
index 0000000..a98919d
--- /dev/null
+++ b/Makefile.PL
@@ -0,0 +1,16 @@
+# This module uses Dist::Zilla for development. This Makefile.PL will let you
+# run the tests, but you are encouraged to install Dist::Zilla and the needed
+# plugins if you intend on doing any serious hacking.
+
+use strict;
+use warnings;
+
+use ExtUtils::MakeMaker::Dist::Zilla::Develop;
+
+use Devel::CallParser 'callparser1_h';
+open my $fh, '>', 'callparser1.h' or die "Couldn't write to callparser1.h";
+$fh->print(callparser1_h);
+
+WriteMakefile(
+ NAME => 'Parse::Keyword',
+);
diff --git a/dist.ini b/dist.ini
index 1482b99..ebed4b6 100644
--- a/dist.ini
+++ b/dist.ini
@@ -15,4 +15,10 @@ awesome = =inc::MakeMaker
[Prereqs / ConfigureRequires]
Devel::CallParser = 0
+; we maintain a Makefile.PL in the repository to be able to work without dzil,
+; but for the distribution we let dzil generate a Makefile.PL with the proper
+; dependencies and such
+[PruneFiles]
+filenames = Makefile.PL
+
[ContributorsFromGit]