Install pidl by default if ExtUtils::MakeMaker is available. This should make the...
[samba.git] / source4 / pidl / config.mk
index 37930083192615fe129cd827299cd64edcaa5ead..0d36473ade2c31c2cfcb409aec6a50f63e3a2ed4 100644 (file)
@@ -5,10 +5,11 @@ pidl-testcov: pidl/Makefile
        cd pidl && cover -test
 
 installpidl:: pidl/Makefile
        cd pidl && cover -test
 
 installpidl:: pidl/Makefile
-       $(MAKE) -C pidl install
+       $(MAKE) -C pidl install_vendor PREFIX=$(prefix)
 
 
-uninstallpidl:: pidl/Makefile
-       $(MAKE) -C pidl uninstall
+ifeq ($(HAVE_PERL_EXTUTILS_MAKEMAKER),1)
+install:: installpidl
+endif
 
 idl_full:: pidl/lib/Parse/Pidl/IDL.pm pidl/lib/Parse/Pidl/Expr.pm 
        @CPP="$(CPP)" PERL="$(PERL)" srcdir=$(srcdir) $(srcdir)/script/build_idl.sh FULL
 
 idl_full:: pidl/lib/Parse/Pidl/IDL.pm pidl/lib/Parse/Pidl/Expr.pm 
        @CPP="$(CPP)" PERL="$(PERL)" srcdir=$(srcdir) $(srcdir)/script/build_idl.sh FULL