+perl-module/pspp-module-config: Makefile
+ $(AM_V_GEN)(echo '%Locations = (';\
+ printf " SourceDir => '";\
+ (cd "$(top_srcdir)" && echo `pwd`\', ) ;\
+ printf " BuildDir => '";\
+ (cd "$(top_builddir)" && echo `pwd`\' );\
+ echo ');') > "$(top_builddir)/perl-module/pspp-module-config"
+
+perl-module/Makefile: perl-module/MakefileX
+ $(SED) -e "/^INC/s/\([^=]\) *-I/\1\" -I/g" -e "/^INC/s/ *-I */ -I\"/g" -e "/^INC/s/ *$$/\"/" -e "/^MYEXTLIB/s/\([^=]\) \([^=]\)/\1\\\\ \2/g" $< > $@
+
+perl-module/MakefileX: perl-module/Makefile.PL perl-module/pspp-module-config $(module_sources)
+ $(AM_V_GEN)cd perl-module && $(PERL) Makefile.PL PREFIX=$(prefix) \
+ OPTIMIZE="$(CFLAGS) $(CPPFLAGS) -Wno-error" \
+ LD="`$(PERL) -e 'use Config::Perl::V;print Config::Perl::V::myconfig()->{config}{ld};'` $(LDFLAGS)"
+
+perl-module/PSPP-Perl-$(VERSION_FOR_PERL).tar.gz: $(module_sources) perl-module/Makefile
+ $(AM_V_at)rm -f $@
+ $(AM_V_GEN)cd perl-module && $(MAKE) $(PERL_MAKEFLAGS) tardist
+
+PHONY += module-make