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
20 echo '%Locations = (' > $$target ;\
21 printf " SourceDir => '" >> $$target ;\
22 (cd $(top_srcdir) && echo `pwd`\', ) >> $$target ;\
23 printf " BuildDir => '" >> $$target ;\
24 (cd $(top_builddir) && echo `pwd`\' ) >> $$target ;\
25 echo ');' >> $$target ;\
26 cp $$target $(top_builddir)/perl-module/pspp-module-config
28 perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config
29 cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix)
31 perl-module/PSPP-Perl-$(VERSION).tar.gz: $(module_sources)
33 cd perl-module && $(MAKE) $(AM_MAKEFLAGS) tardist
36 module-make: perl-module/Makefile src/libpspp-core.la
37 cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
40 if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
41 for f in $(module_sources); do \
42 destdir=`dirname $$f` ;\
44 if test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
45 cp $(top_srcdir)/$$f $$destdir ; \
46 echo cp $(top_srcdir)/$$f $$destdir ; \
50 $(MAKE) $(AM_MAKEFLAGS) module-make perl-module/PSPP-Perl-$(VERSION).tar.gz
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"
58 cd perl-module && $(MAKE) $(AM_MAKEFLAGS) clean || true
59 if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
60 $(RM) $(module_sources) ; \
62 $(RM) perl-module/Makefile.old
64 CLEAN_LOCAL += perl_module_CLEAN
67 perl-module/PSPP-Perl-$(VERSION).tar.gz \
68 perl-module/pspp-module-config \
69 perl-module/const-c.inc \
70 perl-module/const-xs.inc
72 EXTRA_DIST += $(module_sources)