[Top][All Lists]
[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: |
Mon, 19 Oct 2009 12:20:26 +0200 |
User-agent: |
KMail/1.10.3 (Linux/2.6.27.29-0.1-default; KDE/4.1.3; x86_64; ; ) |
Hi,
this is my solution:
I have coosen a Makefile.am wrapper and the perl-extension is in
a subdirectory of the wrapper. I changed the extension-name to
Net::Msgque (as requested by the perl community)
the automake configuration is complete (as of my needs) including
a VPATH build and including the "distclean" check.
PERL - MakeMaker does not support a VPATH build but a work-
around is possible to copy the perl extension directory into the
build directory. This have to be cleaned-up in distclean-local.
now the Makefile:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
if USE_PERL
PERLMAKEFILE = Net-Msgque/Makefile
PERLDEPEND = Net-Msgque/Makefile.PL Net-Msgque/typemap Net-
Msgque/lib/Net/Msgque.pm
PERLCONFIG = PREFIX=$(prefix) \
INC="-Wall -I. -I../$(top_srcdir)/src" \
OBJECT="\$$(O_FILES) ../$(top_builddir)/src/.libs/*.o"
if DEBUG
PERLCONFIG += OPTIMIZE=-g
endif
$(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)
all-local: $(PERLMAKEFILE)
cd Net-Msgque && $(MAKE) $(AM_MAKEFLAGS)
clean-local: $(PERLMAKEFILE)
cd Net-Msgque && $(MAKE) $(AM_MAKEFLAGS) clean
install-exec-local:
cd Net-Msgque && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=$(DESTDIR) install
uninstall-local:
rm -f $(DESTDIR)/$(prefix)/lib/*/site_perl/*/*/Net/Msgque.pm
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
endif
EXTRA_DIST = \
Net-Msgque/ppport.h \
Net-Msgque/Msgque.xs \
Net-Msgque/lib/Net/Msgque.pm \
Net-Msgque/Makefile.PL \
Net-Msgque/README \
Net-Msgque/t/Net-Msgque.t \
Net-Msgque/Changes \
Net-Msgque/MANIFEST \
Net-Msgque/typemap
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
mfg
Andreas Otto
- integration of perl with automake, Andreas Otto, 2009/10/15
- Re: integration of perl with automake, Bob Friesenhahn, 2009/10/15
- Re: integration of perl with automake, Ralf Wildenhues, 2009/10/15
- Re: integration of perl with automake,
Andreas Otto <=
- Re: integration of perl with automake, Ralf Wildenhues, 2009/10/20
- Re: integration of perl with automake, Andreas Otto, 2009/10/20
- Re: integration of perl with automake, Ralf Wildenhues, 2009/10/20
- Re: integration of perl with automake, Andreas Otto, 2009/10/21
- Re: integration of perl with automake, Ralf Wildenhues, 2009/10/21