[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: removing a source file for the dist rule
From: |
Ralf Wildenhues |
Subject: |
Re: removing a source file for the dist rule |
Date: |
Wed, 4 Nov 2009 20:15:39 +0100 |
User-agent: |
Mutt/1.5.20 (2009-08-09) |
* Vincent Torri wrote on Wed, Nov 04, 2009 at 08:05:34PM CET:
> On Wed, 4 Nov 2009, Ralf Wildenhues wrote:
> >* Vincent Torri wrote on Wed, Nov 04, 2009 at 07:52:17PM CET:
> >>we have added an option to our configuration stuff that concatenates
> >>all the source files, creates another from one from them, and
> >>compiles it. The problem is that this new source file is
> >>automatically added to the source files that are added in the tar
> >>ball.
> >>
> >>We have modified DIST_SOURCES so that it contains only the requested
> >>files to add in the tar ball, but automake gives a warning about
> >>DIST_SOURCES and that variable is not described in the automake
> >>manual (using it works, though).
> >
> >Can you just show a small example setup instead of complicated words
> >to describe it? Thanks.
>
> http://pastebin.ca/1657110
>
> It's the Makefile.am file we use and is not that big.
pastebins suck a bit because somebody reading this thread some months
down the road will not be able to see it. Anyway.
You can simply add the generated file to nodist_libeet_la_SOURCES
instead of to libeet_la_SOURCES.
If I were you, I'd replace the first half of the generated file
eet_amalgamation.c with an
#include "header-for-the-big-source-file.h"
and then I'd try to get my other headers to be idempotent so that you
can replace the rest with a loop
for f in $(libeet_la_SOURCES); do \
case $$f in \
*.c) echo '#include "$$f"' >> $@;; \
esac; \
done
and if you don't need to cater to lots of different compiler versions,
then I'd just use a compiler/linker that can do whole-program/link-time
optimization (like GCC 4.5 will, and some others also do), and forget
about this hack.
Cheers,
Ralf
- removing a source file for the dist rule, Vincent Torri, 2009/11/04
- Re: removing a source file for the dist rule, Ralf Wildenhues, 2009/11/04
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/04
- Re: removing a source file for the dist rule,
Ralf Wildenhues <=
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/04
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/04
- Re: removing a source file for the dist rule, Ralf Wildenhues, 2009/11/04
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/04
- Re: removing a source file for the dist rule, Ralf Wildenhues, 2009/11/05
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/05
- Re: removing a source file for the dist rule, Ralf Wildenhues, 2009/11/05
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/05
- Re: removing a source file for the dist rule, Ralf Wildenhues, 2009/11/05
- Re: removing a source file for the dist rule, Vincent Torri, 2009/11/05