automake
[Top][All Lists]
Advanced

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

Re: support for a program that compile files (like yacc or lex support)


From: Vincent Torri
Subject: Re: support for a program that compile files (like yacc or lex support)
Date: Tue, 4 Jan 2011 08:24:55 +0100 (CET)


Hey,

Wasn't what i want (see below) clear enough ?

Vincent Torri

First, it seems that i have deleted your answers while deleting other files. So I answer to my mail without your comments. Sorry for the inconvenience (the archive will not display this mail as an answer to your mail)

On Mon, 20 Dec 2010, Vincent Torri wrote:

* Vincent Torri wrote on Sat, Dec 18, 2010 at 08:52:59PM CET:
I saw in the automake doc a support for yacc and lex. I looked in
automake/am/ and saw 2 files, lex.am and yacc.am, which seem to
allow that support.

We have a program that tranforms .edc files into .edj files, and we
would like to add similar support for that program.

One input file, one output file?

cat >edc-rules.am <<EOF
EDCC = edcc
.edc.edj:
       $(EDCC) $(EDCFLAGS) -o $@ $<
EOF


include edc-rules.am from each Makefile.am you want the rules in.

That is what we are currently doing. A make rule.

If that doesn't answer your question, please clarify what you want.

I would like, in our Makefile.am, having something like:

AM_EDCFLAGS = ****
bin_PROGRAMS = foo
foo_SOURCES = bar.edc

and automake will automatically use edcc to transform bar.edc into bar.edj

See

http://sources.redhat.com/automake/automake.html#Yacc-and-Lex
http://git.savannah.gnu.org/cgit/automake.git/tree/lib/am/yacc.am
http://sources.redhat.com/automake/automake.html#Python
http://git.savannah.gnu.org/cgit/automake.git/tree/lib/am/python.am


Also, as it is transforming a script file into a binary data file, I don't know if bin_PROGRAMS is what should be used. But I just saw that python support has rules like

python_PYTHON = tree.py leave.py

which is really what I would like to have. Having an 'EDJE' primary:

AM_EDCFLAGS = edc_flags
theme_EDJE = foo.edc

then edcc would be called like that:

edcc edc_flags foo.edc foo.edj

Other things must be taken into account:

* foo.edc must be in the tarball
* installation path of foo.edj: what to do ? something like the DATA
  primary ?
* adding prefix ?

I hope I'm a bit clearer :)

thank you

Vincent Torri




reply via email to

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