do 'pspp-module-config' || do {
my $build = prompt ("Enter the location of the build directory of the configured pspp source:", "" );
- do 'lib/pspp-vers.pl' || die "No version info";
my $src = $top_srcdir;
%Locations = (SourceDir => "$src", BuildDir => "$build");
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` ;\
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:
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
=cut
BEGIN {
- do 'pspp-vers.pl' || die "No version set";
+ $PSPP::VERSION='0.7.0';
require XSLoader;
XSLoader::load('PSPP', $PSPP::VERSION);
}
nodist_src_libpspp_libpspp_la_SOURCES = src/libpspp/version.c
-src/libpspp/version.c: $(top_srcdir)/AUTHORS
+src/libpspp/version.c: $(top_srcdir)/AUTHORS $(top_builddir)/Makefile
@$(MKDIR_P) src/libpspp
echo "/* -*- mode: c; buffer-read-only: t -*-" > $@
echo " Generated by src/libpspp/automake.mk --- Do not edit.">> $@