Re: managing headers in source

2013-07-26 Thread Václav Zeman
On 07/20/2013 12:52 PM, Simon Richter wrote:
> Hi Václav,
> 
>> - src/Makefile.am: Listing headers for dependencies and source
>> files. 
>> (http://bazaar.launchpad.net/~log4cplus/log4cplus/trunk/view/head:/src/Makefile.am)
>
>> 
> You do not need to list the headers as source files as long as they
> are listed somewhere.
> 
> The dependencies start out empty before the first build (which does
> not matter because we need to build anyway) and are updated with the
> list of headers that were actually used during the build -- these
> will include your headers.
Thanks. I have removed the includes from the source listing and nothing
has broken. I am not myself sure why I have done it that way in the
first place.

-- 
VZ



signature.asc
Description: OpenPGP digital signature


Re: managing headers in source

2013-07-20 Thread Simon Richter
Hi Václav,

> - src/Makefile.am: Listing headers for dependencies and source files.
> (http://bazaar.launchpad.net/~log4cplus/log4cplus/trunk/view/head:/src/Makefile.am)

You do not need to list the headers as source files as long as they are
listed somewhere.

The dependencies start out empty before the first build (which does not
matter because we need to build anyway) and are updated with the list of
headers that were actually used during the build -- these will include
your headers.

   Simon



managing headers in source

2013-07-19 Thread Václav Zeman
Hi.

I am using Automake in log4cplus project and I wonder if it is possible
to improve the organization of Makefile.am files so that when I add a
header file, I do not have to modify both of these files:

- include/Makefile.am: Listing headers so that they get installed
properly.
(http://bazaar.launchpad.net/~log4cplus/log4cplus/trunk/view/head:/include/Makefile.am)

- src/Makefile.am: Listing headers for dependencies and source files.
(http://bazaar.launchpad.net/~log4cplus/log4cplus/trunk/view/head:/src/Makefile.am)

Is it anyhow possible to organize the source so that the list of the
headers is only one?

-- 
VZ



signature.asc
Description: OpenPGP digital signature