1 ## Process this file with automake to produce Makefile.in -*- makefile -*-
8 perl-module/Examples.pod \
9 perl-module/Makefile.PL \
10 perl-module/MANIFEST \
11 perl-module/ppport.h \
15 perl-module/lib/PSPP.pm \
18 PERL_MAKEFLAGS = $(AM_MAKEFLAGS) LD_RUN_PATH=$(pkglibdir)
20 perl-module/pspp-module-config: Makefile
21 $(AM_V_GEN)(echo '%Locations = (';\
22 printf " SourceDir => '";\
23 (cd $(top_srcdir) && echo `pwd`\', ) ;\
24 printf " BuildDir => '";\
25 (cd $(top_builddir) && echo `pwd`\' );\
26 echo ');') > $(top_builddir)/perl-module/pspp-module-config
28 perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
29 $(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix) \
30 OPTIMIZE="$(CFLAGS) $(CPPFLAGS)" \
31 LD="`$(PERL) -V::ld:` $(LDFLAGS)"
33 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
35 $(AM_V_GEN)cd perl-module && $(MAKE) $(PERL_MAKEFLAGS) tardist
38 module-make: perl-module/Makefile
39 $(AM_V_GEN)cd perl-module && $(MAKE) $(PERL_MAKEFLAGS)
41 ALL_LOCAL += perl_module_tarball
42 perl_module_tarball: $(module_sources) src/libpspp-core.la
43 @if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
44 for f in $(module_sources); do \
45 destdir=`dirname $$f` ;\
47 if test ! -e "$(top_builddir)/$$f" || \
48 test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
50 echo cp $(top_srcdir)/$$f $$destdir ; \
52 echo " GEN $$destdir/$$f"; \
54 cp $(top_srcdir)/$$f $$destdir ; \
58 $(AM_V_GEN)$(MAKE) $(PERL_MAKEFLAGS) module-make perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz
60 CLEAN_LOCAL += perl_module_clean
62 cd perl-module && $(MAKE) $(AM_MAKEFLAGS) clean || true
63 if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
64 rm -f $(module_sources) ; \
66 rm -f perl-module/Makefile.old
69 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz \
70 perl-module/pspp-module-config \
71 perl-module/const-c.inc \
72 perl-module/const-xs.inc
74 EXTRA_DIST += $(module_sources)