<p>Ohh my bad, I thought there were 3 things, when there are 2.<br>
I will look again more precisely tomorrow.</p>
<p>With your naming, somehow the <code>Makefile.dep</code> should do the opposite, that <code>arduino</code> depends on <code>arduino_lib</code> (the common one) that requires the features and the include.<br>
And then adapt <code>sys/Makefile.include</code> to include it on <code>arduino_lib</code>.<br>
So no need for the <code>ifeq</code> but would be, as usual <code>ifneq(,sketches_requested)</code>.</p>
<p>Somehow I think it just makes sense to say "use <code>arduino_sketches</code>" when you want the sketches generated and <code>arduino</code> when you want the library.</p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=620834" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/haukepetersen">@haukepetersen</a> as you added this, what do you think about it?</p>

<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/12180?email_source=notifications&email_token=ABE7WYAEZEODQWALJ4UAW5TQJJVN5A5CNFSM4IUVMT32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SPRBI#issuecomment-530905221">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYDIOSZW4OTBRTJCRODQJJVN5ANCNFSM4IUVMT3Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYHXAVZMOJ3C3QASD43QJJVN5A5CNFSM4IUVMT32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SPRBI.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/12180?email_source=notifications\u0026email_token=ABE7WYAEZEODQWALJ4UAW5TQJJVN5A5CNFSM4IUVMT32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SPRBI#issuecomment-530905221",
"url": "https://github.com/RIOT-OS/RIOT/pull/12180?email_source=notifications\u0026email_token=ABE7WYAEZEODQWALJ4UAW5TQJJVN5A5CNFSM4IUVMT32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6SPRBI#issuecomment-530905221",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>