changeset 6669:25f1f9efa510

[gaim-migrate @ 7194] Most of perl passes make distcheck now. Possibly all, but I have to run another lengthy make distcheck (15th one today I think) to test it. This may not work for all people.. I don't know. Perl did some screwy stuff, and decided to turn off support for make uninstall, which make distcheck is not happy about, so I had to implement Evil Hack (TM). committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Mon, 01 Sep 2003 01:02:47 +0000
parents 7e8a70c531a7
children df5fca8308ec
files plugins/perl/Makefile.am
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/perl/Makefile.am	Mon Sep 01 00:11:42 2003 +0000
+++ b/plugins/perl/Makefile.am	Mon Sep 01 01:02:47 2003 +0000
@@ -86,6 +86,14 @@
 		cd ..; \
 	done
 
+# Evil Hack (TM)
+uninstall-local:
+	@for dir in $(perl_dirs); do \
+		cd $$dir && \
+		`$(MAKE) uninstall | grep unlink | sed -e 's#/usr#${prefix}#' -e 's#unlink#rm -f#'` && \
+		cd ..; \
+	done
+
 clean-generic:
 	@for dir in $(perl_dirs); do \
 		cd $$dir; \
@@ -102,6 +110,16 @@
 		cd ..; \
 	done
 
+	@rm -f Makefile
+	@rm -f common/const-c.inc common/const-xs.inc
+
+	@if test "x${top_srcdir}" != "x${top_builddir}"; then \
+		for f in ${common_sources}; do \
+			${LN_S} -f ../${srcdir}/$$f $$f; \
+		done; \
+	fi
+
+
 AM_CPPFLAGS = \
 	-DVERSION=\"$(VERSION)\" \
 	-I$(top_srcdir) \