automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: renamed objects and other languages


From: Ralf Wildenhues
Subject: Re: renamed objects and other languages
Date: Mon, 23 Apr 2007 13:26:02 +0200
User-agent: Mutt/1.5.15 (2007-04-13)

* 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

[Prev in Thread] Current Thread [Next in Thread]