commit: 1237f46a41c8344ec7b8fac35acb590402647f6c
parent 7e74ab28ae63359163a32f05cdc58f1811d36e43
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Thu, 5 Feb 2026 00:03:13 +0100
notes/buildsystems-conventions: regroup ones supported by autotools&cmake&meson
Diffstat:
1 file changed, 23 insertions(+), 22 deletions(-)
diff --git a/notes/buildsystems-conventions.shtml b/notes/buildsystems-conventions.shtml
@@ -49,6 +49,29 @@
<dd>Flags passed to target Fortran Compiler</dd>
</dl>
+ <h3>Common across autotools, CMake, meson</h3>
+ <dl>
+ <dt><var>PREFIX</var></dt>
+ <dd>Common prefix for installation directories, typically defaulting to <code>/usr/local</code></dd>
+ <dt><var>BINDIR</var></dt>
+ <dd>Installation directory for executables, typically defaulting to <code>${PREFIX}/bin</code></dd>
+ <dt><var>MANDIR</var></dt>
+ <dd>Installation directory for manpages, typically defaulting to <code>${PREFIX}/share/man</code></dd>
+
+ <dt><var>DESTDIR</var></dt>
+ <dd>
+ Sets the destination directory for installation into a different root,
+ for example a temporary installation directory later copied into
+ a distro package or the <code>/</code>
+ </dd>
+
+ <dt><var>PKG_CONFIG</var></dt>
+ <dd>
+ Command/path to target <code>pkg-config(1)</code> implementation.<br />
+ Present in freedesktop.org pkg-config and pkgconf <code>pkg.m4</code>, as well as supported by CMake and meson.
+ </dd>
+ </dl>
+
<h3>Widespread but nor formally specified</h3>
<dl>
<dt><var>RANLIB</var></dt>
@@ -84,28 +107,6 @@
Flag(s) to enable static linking passed to target compiler when building executables.<br />
For example <samp><code>LDSTATIC=-static</code></samp>
</dd>
-
- <!-- pretty much all makefiles -->
- <dt><var>PREFIX</var></dt>
- <dd>Common prefix for installation directories, typically defaulting to <code>/usr/local</code></dd>
- <dt><var>BINDIR</var></dt>
- <dd>Installation directory for executables, typically defaulting to <code>${PREFIX}/bin</code></dd>
- <dt><var>MANDIR</var></dt>
- <dd>Installation directory for manpages, typically defaulting to <code>${PREFIX}/share/man</code></dd>
-
- <!-- pretty much all makefiles -->
- <dt><var>DESTDIR</var></dt>
- <dd>
- Sets the destination directory for installation into a different root,
- for example a temporary installation directory later copied into
- a distro package or the <code>/</code>
- </dd>
-
- <!-- pkg.m4, CMake, meson -->
- <dt><var>PKG_CONFIG</var></dt>
- <dd>
- Command/path to target <code>pkg-config(1)</code> implementation
- </dd>
</dl>
</main>
<!--#include file="/templates/en/footer.shtml" -->