Install pidl by default if ExtUtils::MakeMaker is available. This should make the...
[samba.git] / source4 / pidl / config.mk
1 pidl/Makefile: pidl/Makefile.PL
2         cd pidl && $(PERL) Makefile.PL 
3
4 pidl-testcov: pidl/Makefile
5         cd pidl && cover -test
6
7 installpidl:: pidl/Makefile
8         $(MAKE) -C pidl install_vendor PREFIX=$(prefix)
9
10 ifeq ($(HAVE_PERL_EXTUTILS_MAKEMAKER),1)
11 install:: installpidl
12 endif
13
14 idl_full:: pidl/lib/Parse/Pidl/IDL.pm pidl/lib/Parse/Pidl/Expr.pm 
15         @CPP="$(CPP)" PERL="$(PERL)" srcdir=$(srcdir) $(srcdir)/script/build_idl.sh FULL
16
17 idl:: pidl/lib/Parse/Pidl/IDL.pm pidl/lib/Parse/Pidl/Expr.pm 
18         @CPP="$(CPP)" PERL="$(PERL)" srcdir=$(srcdir) $(srcdir)/script/build_idl.sh PARTIAL 
19
20 pidl/lib/Parse/Pidl/IDL.pm: pidl/idl.yp
21         -$(YAPP) -m 'Parse::Pidl::IDL' -o pidl/lib/Parse/Pidl/IDL.pm pidl/idl.yp ||\
22                 touch pidl/lib/Parse/Pidl/IDL.pm 
23
24 pidl/lib/Parse/Pidl/Expr.pm: pidl/idl.yp
25         -$(YAPP) -m 'Parse::Pidl::Expr' -o pidl/lib/Parse/Pidl/Expr.pm pidl/expr.yp ||\
26                 touch pidl/lib/Parse/Pidl/Expr.pm 
27
28 testcov-html:: pidl-testcov
29
30 $(IDL_HEADER_FILES) \
31         $(IDL_NDR_PARSE_H_FILES) $(IDL_NDR_PARSE_C_FILES) \
32         $(IDL_NDR_CLIENT_C_FILES) $(IDL_NDR_CLIENT_H_FILES) \
33         $(IDL_NDR_SERVER_C_FILES) $(IDL_SWIG_FILES) \
34         $(IDL_NDR_EJS_C_FILES) $(IDL_NDR_EJS_H_FILES) \
35         $(IDL_NDR_PY_C_FILES) $(IDL_NDR_PY_H_FILES): idl
36
37