30 lines
350 B
Plaintext
30 lines
350 B
Plaintext
|
#!/usr/bin/env -S make -f
|
||
|
default: build
|
||
|
|
||
|
# This file is executable so you can do
|
||
|
# ./meson.make
|
||
|
# ./meson.make install
|
||
|
|
||
|
|
||
|
prefix = /usr
|
||
|
prefix = $(HOME)/.local
|
||
|
|
||
|
|
||
|
_build:
|
||
|
meson _build --prefix=$(prefix)
|
||
|
|
||
|
|
||
|
.PHONY: build
|
||
|
build: | _build
|
||
|
meson compile -C _build
|
||
|
|
||
|
|
||
|
.PHONY: install
|
||
|
install:
|
||
|
meson install -C _build
|
||
|
|
||
|
|
||
|
.PHONY: clean
|
||
|
clean:
|
||
|
rm -rf _build
|