Fix make distcheck (which broke from an earlier fix for make when

Sat, 26 Apr 2008 00:43:15 +0000

author
Sadrul Habib Chowdhury <sadrul@pidgin.im>
date
Sat, 26 Apr 2008 00:43:15 +0000
changeset 22879
39b83b2be9d0
parent 22878
bd4afc170503
child 22880
e44c97dec833

Fix make distcheck (which broke from an earlier fix for make when
building in a different directory). References #5614.

libpurple/plugins/perl/Makefile.am file | annotate | diff | comparison | revisions
pidgin/plugins/perl/Makefile.am file | annotate | diff | comparison | revisions
--- 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)

mercurial