Merge branch 'master' of /home/tridge/samba/git/combined
[ira/wip.git] / pidl / config.mk
1 PIDL = $(PERL) $(pidldir)/pidl
2
3 $(pidldir)/Makefile: $(pidldir)/Makefile.PL
4         @cd $(pidldir) && $(PERL) Makefile.PL PREFIX=$(prefix)
5
6 pidl-testcov: $(pidldir)/Makefile
7         cd $(pidldir) && cover -test
8
9 installpidl:: $(pidldir)/Makefile
10         @$(MAKE) -C $(pidldir) install_vendor VENDORPREFIX=$(prefix) \
11                                            INSTALLVENDORLIB=$(datarootdir)/perl5 \
12                                                                    INSTALLVENDORBIN=$(bindir) \
13                                                                    INSTALLVENDORSCRIPT=$(bindir) \
14                                                                    INSTALLVENDORMAN1DIR=$(mandir)/man1 \
15                                                                    INSTALLVENDORMAN3DIR=$(mandir)/man3
16
17 ifeq ($(HAVE_PERL_EXTUTILS_MAKEMAKER),1)
18 install:: installpidl
19 endif
20
21 $(pidldir)/lib/Parse/Pidl/IDL.pm: $(pidldir)/idl.yp
22         -$(YAPP) -m 'Parse::Pidl::IDL' -o $(pidldir)/lib/Parse/Pidl/IDL.pm $(pidldir)/idl.yp ||\
23                 touch $(pidldir)/lib/Parse/Pidl/IDL.pm 
24
25 $(pidldir)/lib/Parse/Pidl/Expr.pm: $(pidldir)/idl.yp
26         -$(YAPP) -m 'Parse::Pidl::Expr' -o $(pidldir)/lib/Parse/Pidl/Expr.pm $(pidldir)/expr.yp ||\
27                 touch $(pidldir)/lib/Parse/Pidl/Expr.pm 
28
29 testcov-html:: pidl-testcov
30
31 pidl-clean:
32         /bin/rm -f $(pidldir)/Makefile
33
34 clean:: pidl-clean