[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
automake and funny BUILT_SOURCES behavior
From: |
wave++ |
Subject: |
automake and funny BUILT_SOURCES behavior |
Date: |
Wed, 23 Oct 2002 13:45:24 +0200 |
User-agent: |
Mutt/1.4i |
I'll be brief :)
| bin_PROGRAMS = funny
|
| SUFFIXES = .m4
| M4COMPILE = $(M4) -I $(srcdir) $(M4FLAGS) $+ > $@
|
| %.hh: %.m4
| $(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.
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.
--
wave++ (Yuri D'Elia)
Software Developer @ ubiest.com
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- automake and funny BUILT_SOURCES behavior,
wave++ <=