You also need either a <appname>.app file in your src/ dir, or a <appname>.app.src file. For the latter, rebar will generate a .app file for you and put it into your ebin dir.

For example, see the src/yaws.app.src file in yaws. There are also several other *.app.src files under the yaws tree you can look at, just

find . -name \*.app.src

in your UNIX shell to find them.

--steve



On Thu, Sep 12, 2013 at 3:54 PM, akonsu <akonsu@gmail.com> wrote:
Hello,

I know this is a basic question, I have started looking at Erlang in general just a few days ago...

I am trying to make an appmod. I know that an appmod is a simple Erlang module that exports out/1. But the problem is that I am trying to build it using rebar. So I have a directory for my project, and a src directory under it. in the root of my project I have rebar.conf. And in src I have my appmod.erl. When I run `rebar compile` it does not compile my appmod.erl. In rebar.config I have `{erl_opts, {src_dirs, ["src"]}}` but apparently this is not enough. I assume that rebar expects an app file or something similar.

So I have a general question: is it possible to generate an appmod skeleton with rebar? I assume that once I do that, rebar will "see" my source files and will compile them.

 Thanks for any help!

Konstantin


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list