On Sat, 2008-09-13 at 11:47 +0200, Ralf Wildenhues wrote:
> Joakim, please quote only relevant parts of the message you reply to.
> Thanks.
>
> * Joakim Tjernlund wrote on Sat, Sep 13, 2008 at 11:40:46AM CEST:
> > >
> > > #! /bin/sh
> > > set -e
> > > LC_ALL=C
> > > export LC_ALL
> > > adds=adds.$$
> > > inits=inits.$$
> > > tmp=tmp.$$
> > > for file in `find . -name Makefile.am`; do
> > > sed -n 's/^\([a-zA-Z_][a-zA-Z_0-9]*\) *+=.*/\1/p' "$file" | sort -u >
> > > $adds
> > > sed -n 's/^\([a-zA-Z_][a-zA-Z_0-9]*\) *=.*/\1/p' "$file" | sort -u >
> > > $inits
> > > needed=`join -v 1 $adds $inits`
> > > mv "$file" $tmp
> > > { echo "$needed" | sed 's/$/ =/'; cat $tmp; } > "$file"
>
> In this line, change the sed script to be '/^$/d;s/$/ =/', to fix ...
>
> > > done
> > > rm $tmp $adds $inits
>
> > Works fairly well, just one thing:
> > It turns already correct assignmenst like:
> > SUBDIRS = xxxx
> > SUBDIRS += yyyy
> > into
> > =
> > SUBDIRS = xxxx
> > SUBDIRS += yyyy
>
> ... this.
Big Thanks, appears to work well!
Noticed i get a ton of theses too with automake 1.8:
ne/oa_uai_if/Makefile.am: object `up_oa_uai.$(OBJEXT)' created both with
libtool and without
Makefile.am looks like this:
include includes.spec
my_DEFS_uai_true = -DBUILD_UAI=1
my_DEFS += $([EMAIL PROTECTED]@)
INCLUDES += $(my_DEFS)
INCLUDES += $(patsubst %,-I%,$(INC))
noinst_HEADERS = \
up_oa_uai.h \
up_oa_uai_in.h
noinst_LIBRARIES = libuaiif.a libuaiif_in.a
libuaiif_a_SOURCES = \
up_oa_uai.c
libuaiif_in_a_SOURCES = \
up_oa_uai_in.c
# Dynamic stuff
lib_LTLIBRARIES += libuaiif.la
libuaiif_la_SOURCES = $(libuaiif_a_SOURCES)
libuaiif_la_LDFLAGS = -version-info 1:0:0
# Note! We need '.' first in the list
SUBDIRS += . @UP_SIMULATORS@
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf