From 7dbe34c72ee7084c3fbfc2d7c8a579cefa3d836b Mon Sep 17 00:00:00 2001
From: John Darrington <john@darrington.wattle.id.au>
Date: Sat, 26 Jun 2010 20:04:40 +0200
Subject: [PATCH] perl-module: Further corrections to dependencies

---
 perl-module/automake.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/perl-module/automake.mk b/perl-module/automake.mk
index 11dcf55d88..becee71b18 100644
--- a/perl-module/automake.mk
+++ b/perl-module/automake.mk
@@ -23,7 +23,7 @@ perl-module/pspp-module-config: Makefile
 	 (cd $(top_builddir) && echo `pwd`\' );\
 	 echo ');') > $(top_builddir)/perl-module/pspp-module-config
 
-perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config
+perl-module/Makefile: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
 	cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix)
 
 perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
@@ -35,7 +35,7 @@ module-make: perl-module/Makefile src/libpspp-core.la
 	cd perl-module && $(MAKE) $(AM_MAKEFLAGS)
 
 ALL_LOCAL += perl_module_tarball
-perl_module_tarball:
+perl_module_tarball: $(module_sources)
 	if test x"$(top_builddir)" != x"$(top_srcdir)" ; then \
 	 for f in $(module_sources); do \
 	  destdir=`dirname $$f` ;\
-- 
2.30.2