Commit 0a91a5e9 authored by Daniel Vetter's avatar Daniel Vetter

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's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Daniel Vetter's avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent c117213c
#!/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 $@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment