Re: [Module-build-general] PATCH: make purge/remove Makefile
Status: Beta
Brought to you by:
kwilliams
|
From: Brian I. <in...@tt...> - 2003-02-24 02:05:11
|
On 20/02/03 10:01 -0600, Ken Williams wrote:
>
> On 19/02/03 21:27 -0800, Brian Ingerson wrote:
> > Here's another patch. I *always* use 'make purge' and I miss it in M::B
> > so I'm suggesting adding it. Very small change.
>
> What's the precedent for that? I don't see it in the EU::MM docs.
It's been in EU::MM forever.
# --- MakeMaker realclean section:
# Delete temporary files (via clean) and also delete installed files
realclean purge :: clean rm -rf $(INST_AUTODIR) $(INST_ARCHAUTODIR)
rm -rf $(DISTVNAME)
rm -f blib/lib/YAML.pod blib/lib/YAML.pm
rm -rf Makefile Makefile.old
Just an alias for realclean. Just like in my patch!
> > I also noticed you weren't deleting the Makefile; a task that any
> > self-respecting realclean is expected to do :)
>
> 'make realclean' already deletes the Makefile. 'Build realclean'
> doesn't, because it knows nothing about it, since it's created by the
> pass-through Makefile.PL.
oh
> Really, I think people need to start using the Build.PL directly
> instead of relying on the pass-through Makefile. It doesn't even
> handle argument passing, for heaven's sake!
I wasn't trying to do things improperly. I was just testing all the
possibilities. Damn users! ;)
Cheers, Brian
|