-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I created a file my_exe.PL which when run creates a file my_exe.  Then
MakeMaker notices this file, and running 'make' does create my_exe.  But
'make clean' does not remove it.  Here's the Makefile.PL:

    use ExtUtils::MakeMaker;
    WriteMakefile(EXE_FILES => [ 'my_exe' ]);

This plus a small script saved as my_exe.PL:

    open(OUT, '>my_exe') or die;
    print OUT qq[print "hello\\n";\n];

Then:

% ls
Makefile.PL  my_exe.PL
% perl Makefile.PL
[...]
% make
[...]
% ls
Makefile  Makefile.PL  blib  my_exe  my_exe.PL  pm_to_blib
% make clean
[...]
% ls
Makefile.PL  Makefile.old  my_exe  my_exe.PL

Note that my_exe is still there even though it is a generated file not a
source file.

% perl -MExtUtils::MakeMaker -e 'print "$ExtUtils::MakeMaker::VERSION\n"'
5.45

- -- 
Ed Avis <[EMAIL PROTECTED]>
Finger for PGP key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8d814IMp73jhGogoRAjMZAJ9MC4KYYv5N7WA10gD0u+yyqZ/QsACeJefg
LzBtL9zKhzGnpnP16QQKngM=
=Ke22
-----END PGP SIGNATURE-----

Reply via email to