BUILT_SOURCES too clumsy

2005-05-22 Thread Harald Dunkel
Hi folks, The targets in BUILT_SOURCES are unconditionally built for 'make all' and 'make install' and 'make check'. Very clumsy. I would like to generate some code for an optional convenience library exactly when needed. Would there be a way to introduce a derived variable libmylib_a_PREDEPEND

Re: Mixing BUILT_SOURCES, double quote include and separation of source and binary directory

2005-03-31 Thread Simon Perreault
On March 31, 2005 07:56, [EMAIL PROTECTED] wrote: (*) Hence you don't have to write #include ../include/inc.h in main.c, but rather #include inc.h, and you can simply write #include built.h, no matter if built.h is generated or not. Sure, that would work except I can't modify the code

Mixing BUILT_SOURCES, double quote include and separation of source and binary directory

2005-03-30 Thread Simon Perreault
includes inc.h this way: #include ../include/inc.h and inc.h includes built.h this way: #include built.h Now, my src/Makefile.am contains something like this: BUILT_SOURCES = ../include/built.h ../include/built.h: mkdir -p $(@D) touch $@ Everything works fine as long as I am

Re: Mixing BUILT_SOURCES, double quote include and separation of source and binary directory

2005-03-30 Thread Gary V. Vaughan
and inc.h in include. main.c includes inc.h this way: #include ../include/inc.h and inc.h includes built.h this way: #include built.h Now, my src/Makefile.am contains something like this: BUILT_SOURCES = ../include/built.h ../include/built.h: mkdir -p $(@D) touch $@ Everything

Re: Mixing BUILT_SOURCES, double quote include and separation of source and binary directory

2005-03-30 Thread Ralf Wildenhues
BUILT_SOURCES = built.h built.h: ../include/built.h rm -f $@ $(LN_S) ../include/built.h $@ or easier, you have in the Makefile.am one level higher up: BUILT_SOURCES = include/built.h include/built.h: $(mkdir_p) include touch $@ for srcdir in $(some_dirs); do \ cd

Distributing BUILT_SOURCES dependencies and not target

2004-08-07 Thread Xavier Décoret
Hi, I am compiling a project with a swig generated file. Swig is a tool that takes a foo.i file and generates a foo_wrap.cxx (it can do more but no our concerne here ;-)). In my Makefile.am, I put: line 1: foo_wrap.cxx: foo.i line 2: $SWIG -c++ -python foo.i line 3: line 4: BUILT_SOURCES

Re: Distributing BUILT_SOURCES dependencies and not target

2004-08-07 Thread Jan Kratochvil
Hi Xavier, On Sat, 07 Aug 2004 16:00:39 +0200, Xavier Dcoret wrote: ... line 4: BUILT_SOURCES: foo_wrap.cxx line 5: libfoo.la_SOURCES: foo_wrap.cxx line 6: line 7: dist_data_DATA: foo.i ... Second question: The problem is that foo_wrap.cxx gets distributed too. And since it is always more

Re: Distributing BUILT_SOURCES dependencies and not target

2004-08-07 Thread Alexandre Duret-Lutz
: Xavier line 1: foo_wrap.cxx: foo.i Xavier line 2: $SWIG -c++ -python foo.i Xavier line 3: Xavier line 4: BUILT_SOURCES: foo_wrap.cxx Xavier line 5: libfoo.la_SOURCES: foo_wrap.cxx Xavier line 6: Xavier line 7: dist_data_DATA: foo.i This should be something like foo_wrap.cxx: $(srcdir)/foo.i

Re: Distributing BUILT_SOURCES dependencies and not target

2004-08-07 Thread Alexandre Duret-Lutz
Jan == Jan Kratochvil [EMAIL PROTECTED] writes: Jan Hi Xavier, Jan On Sat, 07 Aug 2004 16:00:39 +0200, Xavier Décoret wrote: Jan ... line 4: BUILT_SOURCES: foo_wrap.cxx line 5: libfoo.la_SOURCES: foo_wrap.cxx line 6: line 7: dist_data_DATA: foo.i Jan ... Second question

Re: distribution of BUILT_SOURCES dependencies

2004-01-05 Thread Ralf Corsepius
On Sun, 2004-01-04 at 14:59, Warren Turkal wrote: I have the following in a Makefile.am, but the locale.alias.pre is not being distributed. How do I fix that? x11localedir = @X11_LOCALEDIR@ BUILT_SOURCES=locale.alias CLEANFILES=locale.alias x11locale_DATA=locale.alias locale.alias

`make' and `make install' targets with BUILT_SOURCES

2002-12-10 Thread zaufi
Hi all! I'm found another bug or feature :) I have no solution for... I have a project with BUILT_SOURCES defined, moreover it _must_ be builded _before_ any source code will be compiled. In projects without BUILT_SOURCES defined it is OK to type `make install' to compile and install sources

Re: make dist and BUILT_SOURCES

2001-04-06 Thread Robert Collins
- Original Message - From: "Tom Tromey" [EMAIL PROTECTED] Subject: Re: make dist and BUILT_SOURCES "Robert" == Robert Collins [EMAIL PROTECTED] writes: Were they also listed in another foo_SOURCES variable? That would cause them to end up in the dist. Rob

Re: make dist and BUILT_SOURCES

2001-04-05 Thread Robert Collins
- Original Message - From: "Tom Tromey" [EMAIL PROTECTED] To: "Akim Demaille" [EMAIL PROTECTED] Cc: "Robert Collins" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 06, 2001 3:13 AM Subject: Re: make dist and BUILT_SOURCES "Akim" =

Re: make dist and BUILT_SOURCES

2001-04-05 Thread Tom Tromey
"Robert" == Robert Collins [EMAIL PROTECTED] writes: BUILT_SOURCES aren't automatically distributed. Robert Well... it was trying to :]. I've sent in an extract from Robert Makefile.am,, would you like a test case? Sure. Were they also listed in another foo_SOURCES variable?

Re: make dist and BUILT_SOURCES

2001-04-05 Thread Robert Collins
- Original Message - From: "Tom Tromey" [EMAIL PROTECTED] To: "Robert Collins" [EMAIL PROTECTED] Cc: "Akim Demaille" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, April 06, 2001 9:43 AM Subject: Re: make dist and BUILT_SOURCES "Robert" ==

Re: make dist and BUILT_SOURCES

2001-04-04 Thread Akim Demaille
files. (Some of them Robert shouldn't be included in the distribution, and some can be). Robert is there some way to exclude specific built sources from the Robert disrtribution? Automake will always ship parsers and scanners, but I don't believe it ships all the BUILT_SOURCES. Robert Some examp

make dist and BUILT_SOURCES

2001-04-03 Thread Robert Collins
Yet another question from the newbie. I have a number of built source (.hand .c) files that are built from other soources/configure settings. "make dist" is failing to find these files. (Some of them shouldn't be included in the distribution, and some can be). is there some way to exclude

BUILT_SOURCES

2001-02-20 Thread Florent. Devin
Hi, I have seen a var which is BUILT_SOURCES. Affecting this variable causes the make process build the var before anything. (If I am wrong please tell me). But is it necessary to build this var if the cmd is make clean ??? -- Florent DEVIN

Re: BUILT_SOURCES

2001-02-20 Thread Tom Tromey
"Florent" == Florent Devin [EMAIL PROTECTED] writes: Florent I have seen a var which is BUILT_SOURCES. Florent Affecting this variable causes the make process build the var before Florent anything. (If I am wrong please tell me). Florent But is it necessary to build this var if the c

Re: More fun with BUILT_SOURCES

2000-12-20 Thread Tom Tromey
"Braden" == Braden McDaniel [EMAIL PROTECTED] writes: Tom I'd really like to find a better solution for the built files Tom problem. This is currently too hard to do in automake. Braden I ended up doing this: Braden $(libfoo_la_OBJECTS): mybuiltheader.h I recently changed how BUI

Re: More fun with BUILT_SOURCES

2000-11-25 Thread Tom Tromey
"Braden" == Braden McDaniel [EMAIL PROTECTED] writes: I realize that BUILT_SOURCES is known to be problematic, but I haven't found any other solution. Any suggestions? Add explicit dependencies on it. There's no other way to ensure it's generated. BUILT_SOURCES used to

Re: More fun with BUILT_SOURCES

2000-11-14 Thread Braden McDaniel
On 14 Nov 2000, Alexandre Oliva wrote: On Nov 14, 2000, Braden McDaniel [EMAIL PROTECTED] wrote: I realize that BUILT_SOURCES is known to be problematic, but I haven't found any other solution. Any suggestions? Add explicit dependencies on it. There's no other way to ensure it's

Re: More fun with BUILT_SOURCES

2000-11-13 Thread Alexandre Oliva
On Nov 14, 2000, Braden McDaniel [EMAIL PROTECTED] wrote: I realize that BUILT_SOURCES is known to be problematic, but I haven't found any other solution. Any suggestions? Add explicit dependencies on it. There's no other way to ensure it's generated. BUILT_SOURCES used to work only

Re: Problems with BUILT_SOURCES and ansi2knr with CVS automake

2000-04-10 Thread Kevin Dalley
Currently, only original source files are deansified. Derived C files, such as BUILT_SOURCES, are not deansified, even though the corresponding _.o is expected. stat_.o is required, but the Makefile doesn't know how to create it. Is is safe to deansify all C source files, whether derived

Problems with BUILT_SOURCES and ansi2knr with CVS automake

2000-04-07 Thread Kevin Dalley
I installed a new version of automake from CVS. I have the following lines, among many others, in my Makefile.am: AUTOMAKE_OPTIONS = ansi2knr BUILT_SOURCES = lstat.c stat.c It used to be that automake would create a Makefile.in which included the following lines: lstat_.c: lstat.c $(ANSI2KNR

Re: Why does Makefile depend on BUILT_SOURCES?

2000-03-22 Thread Alexandre Oliva
On Mar 16, 2000, Tom Tromey [EMAIL PROTECTED] wrote: "" == OKUJI Yoshinori [EMAIL PROTECTED] writes: 2. The target `Makefile' depends on $(BUILT_SOURCES). The solution may be to get rid of the dependency in the item 2, so my question is why Makefile must depend on BUI

Re: Why does Makefile depend on BUILT_SOURCES?

2000-03-15 Thread Tom Tromey
"" == OKUJI Yoshinori [EMAIL PROTECTED] writes: 2. The target `Makefile' depends on $(BUILT_SOURCES). The solution may be to get rid of the dependency in the item 2, so my question is why Makefile must depend on BUILT_SOURCES. Is there some good reason? Only a hist

<    1   2