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

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Thu Dec 14 13:45:25 UTC 2023


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>
---
 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 =
-- 
2.43.0



More information about the igt-dev mailing list