summaryrefslogtreecommitdiff
path: root/source4/pidl/Makefile.PL
blob: fa250cabc33239bb0c7f12eeac6531686e1d2a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use ExtUtils::MakeMaker;
WriteMakefile(
    'NAME'	=> 'Parse::Pidl',
    'VERSION_FROM' => 'lib/Parse/Pidl.pm',
	'EXE_FILES' => [ 'pidl' ],
	'PMLIBDIRS' => [ 'lib' ],
	'test' => { 'TESTS' => 'tests/*.pl' }
);

sub MY::postamble {
<<'EOT';
lib/Parse/Pidl/IDL.pm :: idl.yp
	yapp -s -m 'Parse::Pidl::IDL' -o 'lib/Parse/Pidl/IDL.pm' idl.yp

doc: pidl.1 pidl.1.html

XSLTPROC=xsltproc

%.1: %.1.xml
	test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<

%.html: %.xml
	test -z "$(XSLTPROC)" || $(XSLTPROC) -o $@ http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl $<
EOT
}