<p>Attempt at improving paths on Windows.</p>

<p>Should be a superset of <a href="https://github.com/geany/geany-plugins/pull/376" class="issue-link js-issue-link" data-url="https://github.com/geany/geany-plugins/issues/376" data-id="137113937" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#376</a> (includes it commit) and <a href="https://github.com/geany/geany-plugins/pull/404" class="issue-link js-issue-link" data-url="https://github.com/geany/geany-plugins/issues/404" data-id="140396803" data-error-text="Failed to load issue title" data-permission-text="Issue title is private">#404</a>.</p>

<hr>

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

<h4>Commit Summary</h4>
<ul>
  <li>Set docdir on Windows builds</li>
  <li>Use $(PACKAGE) instead of hard-coding its value</li>
  <li>Define PLUGIN and PLUGIN{DATA,DOC,LIB}DIR for all plugins</li>
  <li>Define PLUGIN{DATA,DOC,LIB}DIR more explicitly to try and make MSYS2 happy</li>
  <li>Try and reduce code duplication while simplifying altering paths</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-0">addons/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-1">autoclose/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-2">automark/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-3">build/common.m4</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-4">build/vars.build.mk</a>
    (45)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-5">codenav/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-6">commander/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-7">defineformat/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-8">geanyctags/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-9">geanydoc/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-10">geanydoc/tests/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-11">geanyextrasel/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-12">geanyinsertnum/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-13">geanylatex/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-14">geanylipsum/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-15">geanymacro/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-16">geanyminiscript/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-17">geanynumberedbookmarks/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-18">geanypg/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-19">geanyprj/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-20">geanypy/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-21">geanysendmail/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-22">geanyvc/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-23">geniuspaste/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-24">git-changebar/src/Makefile.am</a>
    (3)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-25">lineoperations/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-26">pairtaghighlighter/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-27">pretty-printer/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-28">projectorganizer/src/Makefile.am</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-29">scope/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-30">shiftcolumn/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-31">spellcheck/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-32">tableconvert/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-33">treebrowser/src/Makefile.am</a>
    (1)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/406/files#diff-34">xmlsnippets/src/Makefile.am</a>
    (1)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/406.patch'>https://github.com/geany/geany-plugins/pull/406.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/406.diff'>https://github.com/geany/geany-plugins/pull/406.diff</a></li>
</ul>

<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/406">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ7zv27AGgl0nLb1O8D2g9kWkGl1Dks5psw3GgaJpZM4HvXYq.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/406"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>