[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: automake and funny BUILT_SOURCES behavior
From: |
Alexandre Duret-Lutz |
Subject: |
Re: automake and funny BUILT_SOURCES behavior |
Date: |
Sat, 30 Nov 2002 21:56:22 +0100 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/20.7 (i386-debian-linux-gnu) |
Sorry for the delay.
| | bin_PROGRAMS = funny
| |
| | SUFFIXES = .m4
| | M4COMPILE = $(M4) -I $(srcdir) $(M4FLAGS) $+ > $@
| |
| | %.hh: %.m4
| | $(M4COMPILE)
$+ and % are not portable. Better use
SUFFIXES = .m4
M4COMPILE = $(M4) -I $(srcdir) $(M4FLAGS) $< > $@
.m4.hh:
$(M4COMPILE)
| | BUILT_SOURCES = fun1.hh
| |
| | funny_SOURCES = fun1.cc $(BUILT_SOURCES)
| | EXTRA_funny_SOURCES = fun1.m4
|
| As you see, I preprocess one of my headers using m4 so I list it into
| the BUILT_SOURCES flag.
| The preprocessed header will go into the destination directory, since it
| may change depending on the configure command line.
|
| This will work normally if you use the default automake dependecy
| tracking, but fail when building distributions where --include-deps will
| be used.
|
| This beause the dist target will try to produce these headers and put
| them into the distribution and the final Makefile expects to have these
| files into the source directory.
If you don't want fun1.hh to be distributed, simply do not put
$(BUILT_SOURCES) in funny_SOURCES.
| Any idea about how to bypass the problem will still use the usual automake
| dependency tracking?
|
| I'm still using 1.4-p6 with autoconf 5.
One foot in the past and the other in the future :)
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: automake and funny BUILT_SOURCES behavior,
Alexandre Duret-Lutz <=