From 7b98f8ef479fc1d370b0b2fe4d61fda7241cd76b Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 5 Jul 2017 09:39:29 +1000 Subject: [PATCH] doc: expand on the meson build instructions https://bugs.freedesktop.org/show_bug.cgi?id=101686 Signed-off-by: Peter Hutterer --- doc/building.dox | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/doc/building.dox b/doc/building.dox index 5ca2de46..0f36eba0 100644 --- a/doc/building.dox +++ b/doc/building.dox @@ -26,15 +26,29 @@ $> sudo ninja -C builddir/ install $> sudo udevadm hwdb --update @endcode -The ```prefix``` option or other options can be changed later with the -```mesonconf``` command. - +Additional options may also be specified. For example: @code -$> mesonconf builddir/ -Dprefix=/some/other/prefix +$> meson --prefix=/usr -Ddocumentation=false -Dlibwacom=false builddir/ +@endcode + +The ```prefix``` or other options can be changed later with the +```mesonconf``` command. For example: +@code +$> mesonconf builddir/ -Dprefix=/some/other/prefix -Ddocumentation=true $> ninja -C builddir $> sudo ninja -C builddir/ install @endcode +Running ``mesonconf builddir/`` with no other arguments lists all +configurable options meson provides. + +To rebuild from scratch, simply remove the build directory and run meson +again: +@code +$> rm -r builddir/ +$> meson --prefix=.... +@endcode + @subsection building_autotools Building with automake libinput currently also provides the autotools build system, but this will