automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: integration of perl with automake


From: Andreas Otto
Subject: Re: integration of perl with automake
Date: Wed, 21 Oct 2009 08:04:15 +0200
User-agent: KMail/1.10.3 (Linux/2.6.27.29-0.1-default; KDE/4.1.3; x86_64; ; )

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]