-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 704 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 704 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
MESON ?= meson
BUILDDIR ?= build
MESON_ARGS ?=
.PHONY: all config build install uninstall clean distclean test
all: build
config:
@if [ -d $(BUILDDIR)/meson-private ]; then \
$(MESON) setup $(BUILDDIR) $(MESON_ARGS) --reconfigure; \
else \
$(MESON) setup $(BUILDDIR) $(MESON_ARGS); \
fi
build:
@if [ ! -d $(BUILDDIR)/meson-private ]; then \
$(MESON) setup $(BUILDDIR) $(MESON_ARGS); \
fi
$(MESON) compile -C $(BUILDDIR)
install: build
$(MESON) install -C $(BUILDDIR)
uninstall:
$(MESON) uninstall -C $(BUILDDIR)
clean:
@if [ -d $(BUILDDIR)/meson-private ]; then \
$(MESON) compile -C $(BUILDDIR) --clean; \
fi
distclean:
rm -rf $(BUILDDIR)
test:
$(MESON) test -C $(BUILDDIR)