<p>For some reason, I sometimes have obsolete <code>modules</code> -subdirectory in top level source directory.<br>
It seems to happen after going back and forth in Kamailio 4.x git branches and then back to 5.x.</p>
<p>When that happens, Makefile target "modules" does not correctly start building:</p>
<pre><code>$ gmake modules
gmake: 'modules' is up to date.
</code></pre>
<p>Proposed patch tries to draw attention into such situation:</p>
<pre><code>$ gmake modules
Makefile:14: "old Kamailio modules directory found, you should clean that"
gmake: 'modules' is up to date.
</code></pre>
<p>I think <code>git clean</code> could clean such leftovers but I am not brave enough to propose running that automatically.</p>
<p>Tested on FreeBSD 11.2 (GNU Make 4.2.1) and Ubuntu 16.04 (GNU Make 4.1).</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/kamailio/kamailio/pull/1891'>https://github.com/kamailio/kamailio/pull/1891</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Makefile: give warning when old modules directory is found</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/kamailio/kamailio/pull/1891/files#diff-0">Makefile</a>
    (3)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/kamailio/kamailio/pull/1891.patch'>https://github.com/kamailio/kamailio/pull/1891.patch</a></li>
  <li><a href='https://github.com/kamailio/kamailio/pull/1891.diff'>https://github.com/kamailio/kamailio/pull/1891.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/1891">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZRvPdmiEO7Lty-Jn7IvIcUSy-ZDjks5vWWMhgaJpZM4bwHtm">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZRbs2qmM9EbDAs-gCzXDygCY0gIDks5vWWMhgaJpZM4bwHtm.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Makefile: give warning when old modules directory is found (#1891)"}],"action":{"name":"View Pull Request","url":"https://github.com/kamailio/kamailio/pull/1891"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/1891",
"url": "https://github.com/kamailio/kamailio/pull/1891",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>