[Top][All Lists]
[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: |
Sun, 13 Feb 2011 09:05:34 +0100 |
ping 3 :)
On Mon, Jan 24, 2011 at 10:09 AM, Vincent Torri <address@hidden>wrote:
>
> ping2 :)
>
> Vincent Torri
>
> On Tue, Jan 4, 2011 at 8:24 AM, Vincent Torri <address@hidden> wrote:
>
>>
>> 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
>>>
>>>
>>
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: support for a program that compile files (like yacc or lex support),
Vincent Torri <=