Wireshark-dev: Re: [Wireshark-dev] [Wireshark-commits] rev 22439: /trunk/epan/wslua/ /trunk/epa
From: Guy Harris <[email protected]>
Date: Thu, 02 Aug 2007 01:48:59 -0700
Joerg Mayer wrote:
On Thu, Aug 02, 2007 at 07:54:07AM +0000, [email protected] 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:
@[email protected]	source='$<' object='[email protected]' libtool=no @[email protected]
@[email protected] depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @[email protected]
@[email protected]	$(CCDEPMODE) $(depcomp) @[email protected]
	$(COMPILE) -c `test -f '$<' || echo '$(srcdir)/'`$<

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

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

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