* Florian Briegel wrote on Mon, Apr 23, 2007 at 11:59:10AM CEST:
> Am Montag, 23. April 2007 schrieb Benoit Sigoure:
> >
> > Is there any reason why you would not want to do this?
> 
> Simplicity.
> 
>   aaa_SOURCES = foo.x
> 
> is much more easy to handle than this one
> 
>   BUILT_SOURCES = foo.cc foo.h
>   nodist_aaa_SOURCES = foo.cc foo.h
>   EXTRA_DIST = foo.x

You can achieve listing each non-generated file only once.

> Another reason is that it appears correktly in the Automake-Manager menu in 
> the IDE kdevelop.

That would be a limitation of kdevelop then, no?

Cheers,
Ralf

bin_PROGRAMS = aaa
aaa_SOURCES = main.cc
XFILES = foo.x
FILES_GENERATED_FROM_XFILES = $(XFILES:.x=.h) $(XFILES:.x=.cc)
EXTRA_DIST = $(XFILES)
CLEANFILES = $(FILES_GENERATED_FROM_XFILES)
BUILT_SOURCES = $(FILES_GENERATED_FROM_XFILES)
nodist_aaa_SOURCES = $(FILES_GENERATED_FROM_XFILES)

SUFFIXES = .x

.x.cc:

%.cc %.h: %.x
        :> $*.cc
        :> $*.h


Reply via email to