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-module/pspp-module-config: Makefile
19 (echo '%Locations = (';\
20 printf " SourceDir => '";\
21 (cd $(top_srcdir) && echo `pwd`\', ) ;\
22 printf " BuildDir => '";\
23 (cd $(top_builddir) && echo `pwd`\' );\
24 echo ');') > $(top_builddir)/perl-module/pspp-module-config
26 perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config
27 cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix)
29 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources)
31 cd perl-module && $(MAKE) $(AM_MAKEFLAGS) tardist
34 module-make: perl-module/Makefile src/libpspp-core.la
35 cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
37 ALL_LOCAL += perl_module_tarball
39 if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
40 for f in $(module_sources); do \
41 destdir=`dirname $$f` ;\
43 if test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
44 cp $(top_srcdir)/$$f $$destdir ; \
45 echo cp $(top_srcdir)/$$f $$destdir ; \
49 $(MAKE) $(AM_MAKEFLAGS) module-make perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz
51 CHECK_LOCAL += perl_module_check
53 loc=`pwd` ; cd $(top_builddir)/src/.libs ; llp=`pwd` ; cd $$loc ; \
54 LANG=C LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test"
56 CLEAN_LOCAL += perl_module_clean
58 cd perl-module && $(MAKE) $(AM_MAKEFLAGS) clean || true
59 if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
60 rm -f $(module_sources) ; \
62 rm -f perl-module/Makefile.old
65 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz \
66 perl-module/pspp-module-config \
67 perl-module/const-c.inc \
68 perl-module/const-xs.inc
70 EXTRA_DIST += $(module_sources)