summaryrefslogtreecommitdiffstats
path: root/Makefile.PL
blob: 383791e258c825d9358d509c4dd9b2a2d2aab45f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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 Config;
use ExtUtils::MakeMaker::Dist::Zilla::Develop;

use Devel::CallParser 'callparser1_h', 'callparser_linkable';
open my $fh, '>', 'callparser1.h' or die "Couldn't write to callparser1.h";
$fh->print(callparser1_h);

my @linkable = callparser_linkable;
push @linkable, "Keyword$Config{obj_ext}" if @linkable;

WriteMakefile(
    NAME   => 'Parse::Keyword',
    (@linkable
        ? (OBJECT => join(' ', @linkable))
        : ()),
);