diff options
author | Craig A. Berry <craigberry@mac.com> | 2015-01-21 22:04:01 -0600 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2015-01-22 07:55:36 -0600 |
commit | c98de163de0b7ceafeda0e7348391b9eac339ecb (patch) | |
tree | 97bd911e8af2f1b94064924a12fc401ffa3545d2 /ext/SDBM_File | |
parent | 7799b1c95519329671bb8076d40c278d03d14b0a (diff) | |
download | perl-c98de163de0b7ceafeda0e7348391b9eac339ecb.tar.gz |
Fix SDBM_File clean target after ac0e53cd2e.
The .dir extension is the extension of actual directory files in
the file system on VMS, so putting *.dir in the clean target has
us removing all the directories under ext/SDBM_file, including the
t/ directory. Since the tests are in MANIFEST, a subsequent
reconfigure in the same build tree would then fail its manifest
check, such as when smoking multiple configurations.
So let's only clean up the files created by SDBM, which end with
.sdbm_dir on VMS.
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r-- | ext/SDBM_File/Makefile.PL | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/SDBM_File/Makefile.PL b/ext/SDBM_File/Makefile.PL index 550cf32248..ebee26e7ce 100644 --- a/ext/SDBM_File/Makefile.PL +++ b/ext/SDBM_File/Makefile.PL @@ -3,13 +3,15 @@ use ExtUtils::MakeMaker; my $define = '-DSDBM -DDUFF'; +my $dirfext = $^O eq 'VMS' ? '.sdbm_dir' : '.dir'; + WriteMakefile( NAME => 'SDBM_File', VERSION_FROM => 'SDBM_File.pm', DEFINE => $define, INC => '-I$(PERL_INC)', # force PERL_INC dir ahead of system -I's OBJECT => '$(O_FILES)', - clean => {'FILES' => 'dbu dbd dba dbe x-dbu *.dir *.pag'}, + clean => {'FILES' => "dbu dbd dba dbe x-dbu *${dirfext} *.pag"}, H => [qw(tune.h sdbm.h pair.h $(PERL_INC)/config.h)], C => [qw(SDBM_File.c sdbm.c pair.c hash.c)], ); |