[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: porting with autotools
From: |
Gary V. Vaughan |
Subject: |
Re: porting with autotools |
Date: |
Thu, 26 Aug 2010 11:55:24 +0700 |
On 26 Aug 2010, at 09:25, Reuben Hawkins wrote:
> I was
> thinking output a Makefile.am in each dir which has source in this
> format...
>
> noist_LTLIBRARIES = lib<dir_name>.la
>
> lib<dir_name>_la_SOURCES = <source files in this directory>
func_output ()
{
dirname=`echo "$1" | sed 's,^.*/,,g'`
sources=*.c
cat > Makefile.am <<EOF
noinst_LTLIBRARIES=lib$dirname.la
lib${dirname}_la_SOURCES = $sources
EOF
}
find . -type d -exec func_output {} \;
> Any thoughts would be appreciated.
Don't know whether it's sensible without more context, but the code
above is probably close to what you asked for :)
Cheers,
--
Gary V. Vaughan (address@hidden)
PGP.sig
Description: This is a digitally signed message part
- porting with autotools, Reuben Hawkins, 2010/08/25
- Re: porting with autotools,
Gary V. Vaughan <=
- Re: porting with autotools, Reuben Hawkins, 2010/08/26
- Re: porting with autotools, Ralf Wildenhues, 2010/08/27
- Re: porting with autotools, Reuben Hawkins, 2010/08/27
- Re: porting with autotools, Gary V. Vaughan, 2010/08/28
- Re: porting with autotools, Ralf Wildenhues, 2010/08/28
- Re: porting with autotools, Reuben Hawkins, 2010/08/30
- Re: porting with autotools, Ralf Wildenhues, 2010/08/30
- Re: porting with autotools, NightStrike, 2010/08/31
Re: porting with autotools, Steffen Dettmer, 2010/08/27