<blockquote>
<ul>
<li>
<code>datarootdir = ${prefix}/share</code> -> this is the value in a generated Linux Makefile, this would lead to <code>/share</code> on Windows which is not relative, $datarootdir is used for <code>LOCALEDIR</code> and others</li>
</ul>
</blockquote>

<p>Could be <code>prefix=./</code> to make it relative.</p>

<blockquote>
<ul>
<li>
<code>PKGLIBDIR</code> is empty on Windows, on Linux it is <code>$(libdir)/geany-plugins</code> with <code>$libdir</code> being <code>$prefix/lib</code>, no idea why those are different and PKGLIBDIR seems unused at all to me</li>
</ul>
</blockquote>

<p>But why have it different depending on the platform?  Even if we used to, should we carry that on or couldn't we rely on it being UNIX-style, so on Windows it could be enough to use something like <code>g_build_path(g_win32_get_package_installation_directory_of_module(), DATADIR, NULL)</code> or alike?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany-plugins/pull/374#issuecomment-189679993">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJwYfh6U7n83mskueYCQjDGPlyJJpks5pocizgaJpZM4HkePL.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-plugins/pull/374#issuecomment-189679993"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>