meson.sh 612 Bytes
Newer Older
1 2 3 4 5 6 7 8
#!/bin/bash

cat > Makefile <<EOF

.PHONY: default docs
default: all

build/build.ninja:
9 10
	mkdir -p build
	meson build
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26

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

27 28 29 30 31
install: build/build.ninja
	ninja -C build install

uninstall: build/build.ninja
	ninja -C build uninstall
32 33

docs:
34
	ninja -C build igt-gpu-tools-doc
35 36 37

EOF

38 39
git config format.subjectprefix "PATCH i-g-t"

40
make $@