# HG changeset patch # User Christian Hammond # Date 1062369830 0 # Node ID e5c7149bc9edf7f9ad2e0ac683aa732b95173d74 # Parent f82e2adda03697de63b10ba7e632fe50a01e1c23 [gaim-migrate @ 7190] Perl seems to pass make distcheck now. committer: Tailor Script diff -r f82e2adda036 -r e5c7149bc9ed plugins/perl/Makefile.am --- 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 \ diff -r f82e2adda036 -r e5c7149bc9ed plugins/perl/common/Makefile.PL.in --- 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 ') : ()), '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 );