Add short entry to Examples.pod describing Reader
[pspp-builds.git] / perl-module / automake.mk
index c502cbe8b88d763b87e393a7dd61150d4e15e4c2..54ccd823ce1580181e71ec5cfccf91d8552a0be8 100644 (file)
@@ -33,9 +33,10 @@ perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config
 module-make: perl-module/Makefile
        cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
 
-perl-module/lib/pspp-vers.pl: src/libpspp/version.c
+perl-module/lib/pspp-vers.pl: src/libpspp/version.c Makefile
        mkdir -p perl-module/lib
-       $(GREP) '^\$$VERSION' $(top_builddir)/src/libpspp/version.c | $(SED) -e 's/VERSION/PSPP::VERSION/' > $@
+       (cd $(top_srcdir) && echo "\$$top_srcdir='"`pwd`"';") > $@
+       $(GREP) '^\$$VERSION' $(top_builddir)/src/libpspp/version.c | $(SED) -e 's/VERSION/PSPP::VERSION/' >> $@
 
 all-local: perl-module/lib/pspp-vers.pl
        if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
@@ -49,8 +50,10 @@ all-local: perl-module/lib/pspp-vers.pl
        fi
        $(MAKE) $(AM_MAKEFLAGS) module-make
 
+
 check-local:
-       cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test
+       loc=`pwd` ; cd $(top_builddir)/src/.libs ; llp=`pwd` ; cd $$loc ;  \
+       LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test "
 
 
 clean-local: