<h3>Contribution description</h3>
<p>This PR provides 2 fixes to run <code>./dist/tools/doccheck/check.sh</code> on non-GNU (Linux) OSes such as FreeBSD. First it allows to overwrite the <code>make</code> command through the environment, which is needed bc FreeBSD provides non-GNU make by default and thus RIOT must use <code>gmake</code> instead.<br>
And second, there was also an encoding error in <code>generate-changelog.py</code> bc on FreeBSD if no encoding is set for <code>open</code> it defaults to <code>ascii</code> but RIOT uses <code>utf-8</code>.</p>
<h3>Testing procedure</h3>
<p>Run <code>make static-test</code> or <code>./dist/tools/doccheck/check.sh</code> on your (favourite) OS and it should still work as usual.</p>
<h3>Issues/PRs references</h3>
<p><a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="94907387" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/3392" data-hovercard-type="issue" data-hovercard-url="/RIOT-OS/RIOT/issues/3392/hovercard" href="https://github.com/RIOT-OS/RIOT/issues/3392">#3392</a></p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>tools/doccheck: allow config of `make` command</li>
  <li>doxygen: set encoding for open files in generate-changelog.py</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12240/files#diff-0">dist/tools/doccheck/check.sh</a>
    (6)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/12240/files#diff-1">doc/doxygen/generate-changelog.py</a>
    (6)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12240.patch'>https://github.com/RIOT-OS/RIOT/pull/12240.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/12240.diff'>https://github.com/RIOT-OS/RIOT/pull/12240.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/RIOT-OS/RIOT/pull/12240?email_source=notifications&email_token=ABE7WYDSEBEBZJKCZASONMTQJ5FDDA5CNFSM4IW7VZRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLQZ6PQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYHXYDTYY7A6LPUFEBDQJ5FDDANCNFSM4IW7VZRA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYGZX6H423YFFCMYTZLQJ5FDDA5CNFSM4IW7VZRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLQZ6PQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12240?email_source=notifications\u0026email_token=ABE7WYDSEBEBZJKCZASONMTQJ5FDDA5CNFSM4IW7VZRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLQZ6PQ",
"url": "https://github.com/RIOT-OS/RIOT/pull/12240?email_source=notifications\u0026email_token=ABE7WYDSEBEBZJKCZASONMTQJ5FDDA5CNFSM4IW7VZRKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HLQZ6PQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>