2021-11-09 18:24:13 +00:00
|
|
|
# You can still use meson, but can make
|
2021-11-07 18:34:50 +00:00
|
|
|
|
|
|
|
NAME = er2cord
|
2021-11-09 18:24:13 +00:00
|
|
|
DESTDIR ?= /
|
2021-11-07 18:34:50 +00:00
|
|
|
|
2021-11-09 18:24:13 +00:00
|
|
|
all: build
|
|
|
|
build: build/$(NAME)
|
2021-11-07 18:34:50 +00:00
|
|
|
|
2021-11-09 18:24:13 +00:00
|
|
|
build/$(NAME):
|
|
|
|
meson build
|
|
|
|
ninja -C build
|
2021-11-07 18:34:50 +00:00
|
|
|
|
2021-11-09 18:24:13 +00:00
|
|
|
install: build
|
|
|
|
ninja -C build install
|
2021-11-07 18:34:50 +00:00
|
|
|
|
2021-11-09 18:24:13 +00:00
|
|
|
docs: build
|
|
|
|
mkdir -p "$(DESTDIR)"
|
|
|
|
find dist/ ! -name '*er2cord*' -exec cp -f "{}" "$(DESTDIR)" \;
|
2021-11-07 18:34:50 +00:00
|
|
|
|
|
|
|
clean:
|
2021-11-09 18:24:13 +00:00
|
|
|
rm -rf build
|
|
|
|
|