[PATCH i-g-t] meson.sh: add usage instructions at the beginning of the file

Jani Nikula jani.nikula at linux.intel.com
Fri Dec 15 08:38:42 UTC 2023


On Thu, 14 Dec 2023, Mauro Carvalho Chehab <mauro.chehab at linux.intel.com> wrote:
> From: Mauro Carvalho Chehab <mchehab at kernel.org>
>
> It is useful to have some documentation about the supported targets
> and options.
>
> Add it.
>
> Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>

I think meson.sh should just be removed completely.

It was always meant to be a temporary helper for people accustomed to
makefiles when meson was shiny and new. It's now been more than six
years. Please just move on to using meson and ninja directly.

BR,
Jani.


> ---
>  meson.sh | 16 ++++++++++++++++
>  1 file changed, 16 insertions(+)
>
> diff --git a/meson.sh b/meson.sh
> index 2ea33d69139e..5fb5a806d661 100755
> --- a/meson.sh
> +++ b/meson.sh
> @@ -1,5 +1,21 @@
>  #!/bin/sh
>  
> +# Usage:
> +#    ./meson.sh [<options>] [target]
> +#
> +# Where options can be:
> +#    V=0           - disable non-error messages on ninja
> +#    V=1 (default) - print all ninja messages
> +#
> +# And target is the Makefile target. It can be:
> +#	all         - build all files
> +#       clean       - cleans build
> +#	test        - excecute unit tests
> +#	reconfigure - run Meson reconfigure via ninja
> +#	install     - builds and install IGT
> +#	uninstall   - uninstalls IGT from a past installation
> +#	docs	    - builds igt-gpu-tools-doc
> +
>  cat > Makefile <<EOF
>  
>  quiet_build =

-- 
Jani Nikula, Intel


More information about the igt-dev mailing list