[erlang-questions] Does Emakefile support ASN.1 files?

33 views
Skip to first unread message

Maxim Treskin

unread,
Feb 12, 2009, 11:27:27 PM2/12/09
to erlang-q...@erlang.org
Hello

I have Emakefile which contains one line:

{"*.asn", [{outdir, "."}]}.


So, when I type "erl -make", there is nothing done.
It seems that erlang make does not support ASN.1 compilation.

--
Maxim Treskin

Bengt Kleberg

unread,
Feb 13, 2009, 2:45:47 AM2/13/09
to erlang-q...@erlang.org
Greetings,

Can you change the Emakefile to have your target first in the tuple?

I have not worked with ASN1, but from what I know of Emakefiles the
first entry in the tuple should be the target (module). According to the
compile documentation ASN1 files are the source for targets, not
targets.


bengt

> _______________________________________________
> erlang-questions mailing list
> erlang-q...@erlang.org
> http://www.erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
erlang-q...@erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions

Maxim Treskin

unread,
Feb 13, 2009, 2:57:41 AM2/13/09
to bengt....@ericsson.com, erlang-q...@erlang.org


2009/2/13 Bengt Kleberg <bengt....@ericsson.com>

Greetings,

Can you change the Emakefile to have your target first in the tuple?

I have not worked with ASN1, but from what I know of Emakefiles the
first entry in the tuple should be the target (module). According to the
compile documentation ASN1 files are the source for targets, not
targets.


Now my Emakefile is:

{"SSWConn", [{outdir, "."}]}.

There is SSWConn.asn file in directory. "erl -make" prints:

$ erl -make
Recompile: SSWConn
./SSWConn.erl:none: no such file or directory


BTW, for .erl files my Emakefile is:
{"src/*", [debug_info, {i, "../asn"}, {warn_format, 1}, {outdir, "ebin"}]}.

and all works fine.


--
Maxim Treskin

Bertil Karlsson

unread,
Feb 13, 2009, 3:40:55 AM2/13/09
to Maxim Treskin, erlang-q...@erlang.org
What if you change the entry to for instance:
{"SSWConn", [{outdir, "."},ber_bin]}.

/Bertil

Maxim Treskin wrote:
>
>
> 2009/2/13 Bengt Kleberg <bengt....@ericsson.com
> <mailto:bengt....@ericsson.com>>

> ------------------------------------------------------------------------

Maxim Treskin

unread,
Feb 13, 2009, 3:46:26 AM2/13/09
to Bertil Karlsson, erlang-q...@erlang.org

2009/2/13 Bertil Karlsson <bertil....@ericsson.com>

What if you change the entry to for instance:
{"SSWConn", [{outdir, "."},ber_bin]}.

Same result


--
Maxim Treskin

Maxim Treskin

unread,
Feb 13, 2009, 3:56:59 AM2/13/09
to Bertil Karlsson, erlang-q...@erlang.org
There is expand/2 in make.erl, which handles only .erl files.
I can make patch for handling .asn files too, but I don't know, which behaviour must be used here without conflicts with previous case.


--
Maxim Treskin
Reply all
Reply to author
Forward
0 new messages