Am Dienstag 20 Oktober 2009 21:07:35 schrieb Ralf Wildenhues:
> * Andreas Otto wrote on Tue, Oct 20, 2009 at 08:53:14AM CEST:
> > Am Dienstag 20 Oktober 2009 08:27:01 schrieb Ralf Wildenhues:
> > > > distclean-local:
> > > > test -f Net-Msgque/.distclean && rm -fr Net-Msgque
> > >
> > > Won't that also remove files from your package iff source and build
> > > tree coincide?
> >
> > I use the flag file "Net-Msgque/.distclean" to distinguish the VPATH
> > build from the non VPATH build. this flag is only set in the directory I
> > copied from the source into the build tree and clean act on this flag
>
> OK, but then 'make distclean' wouldn't remove the files it should
> remove, if source and build tree coincide, no?
>
> Cheers,
> Ralf
Hi,
$(PERLMAKEFILE): $(PERLDEPEND) Makefile.am
-test ! -d Net-Msgque && cp -pr $(srcdir)/Net-Msgque . && \
chmod -R u+w Net-Msgque && touch Net-Msgque/.distclean
cd Net-Msgque && @PERL@ Makefile.PL $(PERLCONFIG)
non VPATH -> build-tree == source-tree
=> no copy and no flag "Net-Msgque.distclean"
=> no distclean remove
VPATH -> build-tree != source-tree
=> copy from Net-Msgque done and flag "Net-Msgque/.distclean" set
=> distclean remove performed
is this does not explain your problem
than I don't understand what you mean
mfg
Andreas Otto