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: Tue, 20 Oct 2009 08:53:14 +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 08:27:01 schrieb Ralf Wildenhues:
> Hello Andreas,
>
> thanks for sharing your solution.  A couple of comments:
>
> * Andreas Otto wrote on Mon, Oct 19, 2009 at 12:20:26PM CEST:
> > if USE_PERL
> >
> > PERLMAKEFILE  = Net-Msgque/Makefile
> > PERLDEPEND    = Net-Msgque/Makefile.PL Net-Msgque/typemap Net-
> > Msgque/lib/Net/Msgque.pm
> > PERLCONFIG    =   PREFIX=$(prefix) \
>
> It would be prudent to quote $(prefix), too.
>
> >                   INC="-Wall -I. -I../$(top_srcdir)/src" \
> >                   OBJECT="\$$(O_FILES) ../$(top_builddir)/src/.libs/*.o"
> >
> > install-exec-local:
> >         cd Net-Msgque && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(DESTDIR)
> > install
>
> Likewise, I'd quote $(DESTDIR) here, or even better, omit
> DESTDIR=$(DESTDIR) unless Net-Msgque/Makefile initializes it.
>
> > uninstall-local:
> >         rm -f $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/Net/Msgque.pm
>
> Please remove the slash between $(DESTDIR) and $(prefix) here and in
> following lines.  Otherwise you risk breaking the installation on w32
> with --prefix=C:/foo and empty DESTDIR.  Also, again it would be prudent
> to quote the $(DESTDIR)$(prefix) part of the strings.
>
> >         rm -f
> > $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/auto/Net/Msgque/Msgque.so
> >         rm -f
> > $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/auto/Net/Msgque/Msgque.bs
> >         rm -f
> > $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/auto/Net/Msgque/autosplit.ix
> >         rm -f
> > $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/auto/Net/Msgque/.packlist
> >         rm -f $(DESTDIR)/$(prefix)/lib/*/*/*/perllocal.pod
> >         rm -f $(DESTDIR)/$(prefix)/share/man/man3/Net::Msgque.3
> >
> > 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?

Hi,

  I add your suggestions ...

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


mfg

  Andreas Otto




reply via email to

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