do 'pspp-module-config' || do {
- my $src = prompt ("Enter the location of the full pspp source","../pspp");
- my $build = prompt ("Enter the location of the pspp build directory", "$src" );
+ 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
+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 \