changeset 6665:e5c7149bc9ed

[gaim-migrate @ 7190] Perl seems to pass make distcheck now. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 31 Aug 2003 22:43:50 +0000
parents f82e2adda036
children 3d45ef7d3231
files plugins/perl/Makefile.am plugins/perl/common/Makefile.PL.in
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/Makefile.am	Sun Aug 31 21:41:37 2003 +0000
+++ b/plugins/perl/Makefile.am	Sun Aug 31 22:43:50 2003 +0000
@@ -58,7 +58,12 @@
 	$(common_sources)
 
 common/Makefile: common/Makefile.PL
-	cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
+	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
+		for f in ${common_sources}; do \
+			${LN_S} -f ../${srcdir}/$$f $$f; \
+		done; \
+	fi
+	@cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
 
 common/Makefile.PL: common/Makefile.PL.in $(top_srcdir)/config.status
 	cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
@@ -73,6 +78,11 @@
 		 $(MAKE) CC="$(CC)" CCFLAGS="$(PERL_CFLAGS) $(CFLAGS)" $(PERL_EXTRA_OPTS)) && \
 		cd ..; \
 	done
+	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
+		for f in ${common_sources}; do \
+			rm -f $$f; \
+		done; \
+	fi
 
 install-exec-local:
 	@for dir in $(perl_dirs); do \
--- a/plugins/perl/common/Makefile.PL.in	Sun Aug 31 21:41:37 2003 +0000
+++ b/plugins/perl/common/Makefile.PL.in	Sun Aug 31 22:43:50 2003 +0000
@@ -11,7 +11,7 @@
        AUTHOR     => 'Christian Hammond <chipx86@gnupdate.org>') : ()),
     'LIBS'		=> [''], # e.g., '-lm'
     'DEFINE'		=> '', # e.g., '-DHAVE_SOMETHING'
-    'INC'		=> '-I. -I@top_srcdir@ -I@top_srcdir@/src @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other'
+    'INC'		=> '-I. -I@srcdir@ -I@top_srcdir@ -I@top_srcdir@/src @GLIB_CFLAGS@', # e.g., '-I. -I/usr/include/other'
     'OBJECT'		=> '$(O_FILES)', # link all the C files too
 );