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