From: John Darrington <john@darrington.wattle.id.au>
Date: Thu, 29 Jan 2009 23:23:29 +0000 (+0900)
Subject: Correct the directory of the perl module tarball target
X-Git-Tag: sav-api~819
X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd2a72711236a924ad05c6c1fff9055eaa0db64d;p=pspp

Correct the directory of the perl module tarball target
---

diff --git a/perl-module/automake.mk b/perl-module/automake.mk
index 9619dfe0b1..7fad5e425c 100644
--- a/perl-module/automake.mk
+++ b/perl-module/automake.mk
@@ -31,8 +31,8 @@ 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) $@
+perl-module/PSPP-Perl-$(VERSION).tar.gz: $(module_sources)
+	$(RM) $@
 	cd perl-module && $(MAKE) $(AM_MAKEFLAGS) tardist
 
 .PHONY: module-make
@@ -46,10 +46,11 @@ all-local:
 	  mkdir -p $$destdir ;\
 	  if test "$(top_srcdir)/$$f" -nt "$(top_builddir)/$$f" ; then \
 		 cp $(top_srcdir)/$$f $$destdir ; \
+		 echo cp $(top_srcdir)/$$f $$destdir ; \
 	  fi ; \
 	 done \
 	fi
-	$(MAKE) $(AM_MAKEFLAGS) module-make PSPP-Perl-$(VERSION).tar.gz
+	$(MAKE) $(AM_MAKEFLAGS) module-make perl-module/PSPP-Perl-$(VERSION).tar.gz
 
 check-local:
 	loc=`pwd` ; cd $(top_builddir)/src/.libs ; llp=`pwd` ; cd $$loc ;  \