[libnet-dbus-perl] 41/335: Added checking of syntax

Intrigeri intrigeri at moszumanska.debian.org
Sat Mar 21 01:07:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch experimental
in repository libnet-dbus-perl.

commit f93f02321c685d7492936bbf1bba0e50bec9e7b6
Author: Daniel P. Berrange <dan at berrange.com>
Date:   Thu Mar 3 17:46:46 2005 +0000

    Added checking of syntax
---
 Makefile.PL | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Makefile.PL b/Makefile.PL
index 7218f72..c55bd8d 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -32,7 +32,7 @@ WriteMakefile(
     'AUTHOR' => 'Daniel Berrange <dan at berrange.com>',
     'LIBS' => ["-L$DBUS_HOME/lib -ldbus-1"], 
     'DEFINE' => "-DDBUS_API_SUBJECT_TO_CHANGE $PD_DEBUG",
-    'INC' => "-I$DBUS_HOME/include/dbus-1.0 -I$DBUS_HOME/lib/dbus-1.0/include",
+    'INC' => "-Wall -I$DBUS_HOME/include/dbus-1.0 -I$DBUS_HOME/lib/dbus-1.0/include",
 );
 
 package MY;
@@ -43,5 +43,19 @@ sub libscan
     ($path =~ /\~$/) ? undef : $path;
   }
 
+sub postamble {
+    return '
+TO_TEST_PM = $(TO_INST_PM:lib/%.pm=blib/test/%.pm)
+
+stest :: $(TO_TEST_PM)
+
+blib/test/%.pm: blib/lib/%.pm
+	@echo -n "Checking $@: "
+	@perl -I blib/lib -I blib/arch -c $<
+	@mkdir -p `dirname $@`
+	@touch $@
+';
+}
+
 
 __END__

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libnet-dbus-perl.git



More information about the Pkg-perl-cvs-commits mailing list