Remove pspp-vers.pl which did more harm than good.
[pspp-builds.git] / perl-module / automake.mk
index 54ccd823ce1580181e71ec5cfccf91d8552a0be8..9619dfe0b109bf34c8da78c40809fdc27fbab95d 100644 (file)
@@ -30,15 +30,16 @@ perl-module/pspp-module-config: Makefile
 perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config
        cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix)
 
+
+PSPP-Perl-$(VERSION).tar.gz:
+       cd perl-module && $(RM) $@
+       cd perl-module && $(MAKE) $(AM_MAKEFLAGS) tardist
+
+.PHONY: module-make
 module-make: perl-module/Makefile
        cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
 
-perl-module/lib/pspp-vers.pl: src/libpspp/version.c Makefile
-       mkdir -p perl-module/lib
-       (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
+all-local: 
        if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
         for f in $(module_sources); do \
          destdir=`dirname $$f` ;\
@@ -48,12 +49,11 @@ all-local: perl-module/lib/pspp-vers.pl
          fi ; \
         done \
        fi
-       $(MAKE) $(AM_MAKEFLAGS) module-make
-
+       $(MAKE) $(AM_MAKEFLAGS) module-make PSPP-Perl-$(VERSION).tar.gz
 
 check-local:
        loc=`pwd` ; cd $(top_builddir)/src/.libs ; llp=`pwd` ; cd $$loc ;  \
-       LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test "
+       LD_LIBRARY_PATH=$$llp sh -c "cd perl-module && $(MAKE) $(AM_MAKEFLAGS) test"
 
 
 clean-local:
@@ -65,8 +65,8 @@ clean-local:
 
 
 CLEANFILES += \
+        perl-module/PSPP-Perl-$(VERSION).tar.gz \
        perl-module/pspp-module-config \
-       perl-module/lib/pspp-vers.pl \
        perl-module/const-c.inc \
        perl-module/const-xs.inc