{"action":"opened","issue":{"url":"https://api.github.com/repos/ninenines/erlang.mk/issues/447","labels_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/447/labels{/name}","comments_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/447/comments","events_url":"https://api.github.com/repos/ninenines/erlang.mk/issues/447/events","html_url":"https://github.com/ninenines/erlang.mk/issues/447","id":121530232,"number":447,"title":"include_lib does not see all apps in APPS_DIR and DEPS_DIR","user":{"login":"goertzenator","id":605072,"avatar_url":"https://avatars.githubusercontent.com/u/605072?v=3","gravatar_id":"","url":"https://api.github.com/users/goertzenator","html_url":"https://github.com/goertzenator","followers_url":"https://api.github.com/users/goertzenator/followers","following_url":"https://api.github.com/users/goertzenator/following{/other_user}","gists_url":"https://api.github.com/users/goertzenator/gists{/gist_id}","starred_url":"https://api.github.com/users/goertzenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goertzenator/subscriptions","organizations_url":"https://api.github.com/users/goertzenator/orgs","repos_url":"https://api.github.com/users/goertzenator/repos","events_url":"https://api.github.com/users/goertzenator/events{/privacy}","received_events_url":"https://api.github.com/users/goertzenator/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T16:50:22Z","updated_at":"2015-12-10T16:50:22Z","closed_at":null,"body":"I have several apps in my `APPS_DIR`, and one of them `-include_lib`s a header from a sibling app.  This results in a `can't find include lib ...` compile error.\r\n\r\nConsider this excerpt from the code loader documentation:\r\n\r\n\"The environment variable `ERL_LIBS` (defined in the operating system) can be used to define additional library directories that will be handled in the same way as the standard OTP library directory described above, *except that directories that do not have an ebin directory will be ignored.*\" (emphasis mine)\r\n\r\nSo I look at the application where the header is coming from, and sure enough it has not been compiled yet and there is no `ebin` directory.  I create a empty `ebin` directory for this app, and every then compiles properly.\r\n\r\nLooking at the verbose build output, I see that DEPS are built before the current app.  Perhaps LOCAL_DEPS should be handled similarly?\r\n\r\n"}}