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/ 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.


On Thu, Sep 12, 2013 at 3:54 PM, akonsu <> wrote:

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!


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
Erlyaws-list mailing list