@@ -248,7 +248,7 @@ sub MY::postamble {
248248 $MAKEFILEPL ,
249249 ' Other' , ' Other.pm' , qq{ } ,
250250 <<'EOF' ,
251- SKIP => [qw(all static dynamic )],
251+ SKIP => [qw(all static dynamic)],
252252clean => {'FILES' => 'libparser$(LIB_EXT)'},
253253EOF
254254 ) . <<'EOF' ,
293293};
294294virtual_rename(' subdirsskip' , ' Other/lib/file.c' , ' Other/file.c' );
295295
296+ # to mimic behaviour of Math-CDF version 0.1
297+ $label2files {subdirsskip2 } = +{
298+ %{ $label2files {subdirsskip } }, # make copy
299+ ' Other/Makefile.PL' => sprintf (
300+ $MAKEFILEPL ,
301+ ' Other' , ' Other.pm' , qq{ } ,
302+ <<'EOF' ,
303+ SKIP => [qw(all static static_lib dynamic dynamic_lib test_dynamic test)],
304+ clean => {'FILES' => 'libparser$(LIB_EXT)'},
305+ EOF
306+ ) . <<'EOF' ,
307+ sub MY::top_targets {
308+ my ($self) = @_;
309+ <<'SNIP' . $self->static_lib_pure_cmd('$(O_FILES)');
310+ test ::
311+ all :: static
312+ static :: libparser$(LIB_EXT)
313+ libparser$(LIB_EXT): $(O_FILES)
314+ SNIP
315+ }
316+ EOF
317+ };
318+
296319my $XS_MULTI = $XS_OTHER ;
297320# check compiling from top dir still can include local
298321$XS_MULTI =~ s : (#include "XSUB.h"): $1 \n #include "header.h": ;
@@ -425,6 +448,7 @@ sub list_dynamic {
425448 ) : (),
426449 [ ' xsbuild' , ' ' , ' ' ],
427450 [ ' subdirsskip' , ' ' , ' ' ],
451+ [ ' subdirsskip2' , ' ' , ' ' ],
428452 );
429453}
430454
0 commit comments