summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-08 17:14:46 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2017-09-26 13:35:47 +0200
commit0a91a5e9624d41d23b79e2540eda111cb56d42d9 (patch)
treeb3ab5dda0b38d9ce37c96dfca5c18ee1f2e4e580
parentc117213c06d0f47937c1f225ebead5e1fe8c7a0e (diff)
meson: Simple makefile integration
Run ./meson.sh once, then you have $ make and $ make test available in the normal src root. v2: Add $ make reconfigure which is the meson equivalent to rerunning ./configure. Also takes some arguments if needed. Start out with --help, as usual. v3: Use ninja -C (Chris). v4: Catch more automake targets and point out what's happening (Petri). v5: Use EOF as heredoc marker (Arek) Cc: Petri Latvala <petri.latvala@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rwxr-xr-xmeson.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/meson.sh b/meson.sh
new file mode 100755
index 00000000..eff86adb
--- /dev/null
+++ b/meson.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+cat > Makefile <<EOF
+
+.PHONY: default docs
+default: all
+
+build/build.ninja:
+ mkdir build
+ meson
+
+all: build/build.ninja
+ ninja -C build
+
+clean: build/build.ninja
+ ninja -C build clean
+
+test: build/build.ninja
+ ninja -C build test
+
+reconfigure: build/build.ninja
+ ninja -C build reconfigure
+
+check distcheck dist distclean:
+ echo "This is the meson wrapper, not automake" && false
+
+install uninstall:
+ echo "meson install support not yet completed" && false
+
+docs:
+ echo "meson gtkdoc support not yet completed" && false
+
+EOF
+
+make $@