- need to set @INC before use in the test
- {} are special to dmake, so use ppport.h.PL
rather than commandline
p4raw-id: //depot/perlio@13944
my $retval = <<"EOM";
-ppport.h: $pmfile
- \$(PERL) "-I\$(PERL_ARCHLIB)" "-I\$(PERL_LIB)" -e "require qq{$pmfile}; package Devel::PPPort ; sub bootstrap {} ; WriteFile(qq{ppport.h})"
+#ppport.h:: ppport.h.PL
+# \$(PERL) "-I\$(PERL_ARCHLIB)" "-I\$(PERL_LIB)" ppport.h.PL > ppport.h
PPPort.xs module2.c module3.c : ppport.h
- \$(TOUCH) \$@
+ -\$(TOUCH) \$@
EOM
--- /dev/null
+my $pmfile = 'PPPort.pm';
+package Devel::PPPort;
+sub bootstrap {};
+require qq[$pmfile];
+WriteFile(qq[ppport.h]);
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib' if -d '../lib';
+}
use Devel::PPPort;
-
use strict;
print "1..17\n";
-BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib' if -d '../lib';
-
-}
-
my $total = 0;
my $good = 0;