develooper Front page | perl.vmsperl | Postings from January 2002

Re: [PATCH] Devel::PPPort Makfile.PL fixes

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
January 2, 2002 15:20
Subject:
Re: [PATCH] Devel::PPPort Makfile.PL fixes
Message ID:
5.1.0.14.2.20020102171416.03ba7aa8@mail.mac.com
At 03:43 AM 1/2/2002 +0200, Jarkko Hietaniemi wrote:
> I went for even more extensive
> rewrite of the logic, we'll see how it works.

Not at all for me.  There were no ppport.h or ppport_h files supplied with 
the distribution and no actions specified to build them.  The following even 
more extensive rewrite works fine for me but has only been tested on VMS.


--- ext/Devel/PPPort/Makefile.PL;-0     Tue Jan  1 19:36:16 2002
+++ ext/Devel/PPPort/Makefile.PL        Wed Jan  2 17:07:18 2002
@@ -5,21 +5,22 @@
     NAME       => "Devel::PPPort",
     DISTNAME   => "Devel-PPPort",
     VERSION_FROM=> 'PPPort.pm',
-
-    #PM                => {'PPPort.pm' => '$(INST_LIBDIR)/PPPort.pm'}, 
-    OBJECT     => 'PPPort$(OBJ_EXT) module2$(OBJ_EXT) module3$(OBJ_EXT)',
+    C          => [qw(module2.c module3.c)],
+    H          => [qw(ppport.h)],
+    OBJECT     => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)',
     XSPROTOARG => '-noprototypes',
     'dist'     => { COMPRESS=>"gzip", SUFFIX=>"gz" },
-    'clean'    => { FILES => [qw(ppport.h ppport_h)]},
+    'clean'    => { FILES => [qw($(H_FILES))]}
 );
 
 sub MY::postamble {
     return <<"EOM";
 
-ppport.h:      ppport_h
-       \$(TOUCH) ppport_h
+ppport.h :     ppport_h.PL
+       \$(PERL) \"-I\$(PERL_ARCHLIB)\" \"-I\$(PERL_LIB)\" ppport_h.PL
 
-PPPort.xs module2\$(OBJ_EXT) module3\$(OBJ_EXT): ppport.h
+\$(XS_FILES) :  \$(O_FILES)
+        \$(NOOP)
 
 EOM
 }
[end of patch]


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About