Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 22439: /trunk/epan/wslua/ /trunk/epa
From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 02 Aug 2007 01:48:59 -0700
Joerg Mayer wrote:
On Thu, Aug 02, 2007 at 07:54:07AM +0000, guy@xxxxxxxxxxxxx wrote:
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=22439
...
 Don't put $(srcdir)/ at the beginning of those file names - other
 Makefile.am files don't have it, and it appears to break "make
 distcheck", at least on my Mac OS X 10.4 machine.

From svn log:

r21861 | jmayer | 2007-05-21 18:02:31 +0200 (Mon, 21 May 2007) | 1 line

Hack to fix out of tree builds

automake should be taking care of that - and the version of automake on my machine, at least, is generating rules such as

.c.o:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<

.c.obj:
@AMDEP_TRUE@	source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(COMPILE) -c `cygpath -w $<`

.c.lo:
@AMDEP_TRUE@	source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@
@AMDEP_TRUE@	$(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
	$(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<

which should, I think, do the job (it does the same for other Makefiles).