<h3>Contribution description</h3>
<p>Currently, some targets are serialized before "clean" by conditionally<br>
adding a dependency.</p>
<p>Make does allow ordering using "|" syntax in prerequisites, but for<br>
"clean" that would always trigger the clean target.<br>
By only conditionally setting $(CLEAN) to clean, that can be<br>
circumvented.</p>
<p>The new CLEAN allows any recipe to be run after "clean" by specifying "|<br>
$(CLEAN)" as prerequisite.</p>


<h3>Testing procedure</h3>
<p>Try <code>make clean all -j</code> and <code>make all -j</code>, ensuring both still work as expected (both with existing and non-existing <code>bin/</code>.</p>

<h3>Issues/PRs references</h3>


<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/11829'>https://github.com/RIOT-OS/RIOT/pull/11829</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>make: introduce $(CLEAN)</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/RIOT-OS/RIOT/pull/11829/files#diff-0">Makefile.include</a>
    (11)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11829.patch'>https://github.com/RIOT-OS/RIOT/pull/11829.patch</a></li>
  <li><a href='https://github.com/RIOT-OS/RIOT/pull/11829.diff'>https://github.com/RIOT-OS/RIOT/pull/11829.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/11829?email_source=notifications&email_token=ABE7WYEA5VEXQ3KR7WBDL2LP7BE2JA5CNFSM4ICFVADKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G62UIIQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGJNC6YLEP52BY2OBTP7BE2JANCNFSM4ICFVADA">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYAR4BD7OH36Y2M5DQ3P7BE2JA5CNFSM4ICFVADKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G62UIIQ.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/11829?email_source=notifications\u0026email_token=ABE7WYEA5VEXQ3KR7WBDL2LP7BE2JA5CNFSM4ICFVADKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G62UIIQ",
"url": "https://github.com/RIOT-OS/RIOT/pull/11829?email_source=notifications\u0026email_token=ABE7WYEA5VEXQ3KR7WBDL2LP7BE2JA5CNFSM4ICFVADKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G62UIIQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>