changeset 22736:bcaed4d5522b

Fix make distcheck (which broke from an earlier fix for make when building in a different directory). References #5614.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 26 Apr 2008 00:43:15 +0000
parents 7c76f72a2c9f
children 116a1483d554
files libpurple/plugins/perl/Makefile.am pidgin/plugins/perl/Makefile.am
diffstat 2 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/perl/Makefile.am	Sat Apr 26 00:12:41 2008 +0000
+++ b/libpurple/plugins/perl/Makefile.am	Sat Apr 26 00:43:15 2008 +0000
@@ -90,7 +90,9 @@
 common/Makefile: common/Makefile.PL
 	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
 		for f in ${common_sources}; do \
-			${LN_S} -f ${srcdir}/$$f $$f; \
+			srcloc=${srcdir}; \
+			case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \
+			${LN_S} -f $$srcloc/$$f $$f; \
 		done; \
 	fi
 	@cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)
@@ -148,7 +150,9 @@
 
 	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
 		for f in ${common_sources}; do \
-			${LN_S} -f ${srcdir}/$$f $$f; \
+			srcloc=${srcdir}; \
+			case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \
+			${LN_S} -f $$srcloc/$$f $$f; \
 		done; \
 	fi
 
--- a/pidgin/plugins/perl/Makefile.am	Sat Apr 26 00:12:41 2008 +0000
+++ b/pidgin/plugins/perl/Makefile.am	Sat Apr 26 00:43:15 2008 +0000
@@ -39,7 +39,9 @@
 common/Makefile: common/Makefile.PL
 	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
 		for f in ${common_sources}; do \
-			${LN_S} -f ../${srcdir}/$$f $$f; \
+			srcloc=${srcdir}; \
+			case $$srcloc in /*) ;; *) srcloc=../${srcdir} ;; esac; \
+			${LN_S} -f $$srcloc/$$f $$f; \
 		done; \
 	fi
 	@cd common && $(perlpath) Makefile.PL $(PERL_MM_PARAMS)