forked from computexpresslink/libcxlmi
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (30 loc) · 714 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (30 loc) · 714 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
# SPDX-License-Identifier: LGPL-2.1-or-later
#
# This file is part of libcxlmi.
#
NAME := libcxlmi
.DEFAULT_GOAL := ${NAME}
BUILD-DIR := .build
${BUILD-DIR}:
meson setup $@
@echo "Configuration located in: $@"
@echo "-------------------------------------------------------"
.PHONY: ${NAME}
${NAME}: ${BUILD-DIR}
meson compile -C ${BUILD-DIR}
.PHONY: clean
clean:
ifneq ("$(wildcard ${BUILD-DIR})","")
meson compile --clean -C ${BUILD-DIR}
endif
.PHONY: purge
purge:
ifneq ("$(wildcard ${BUILD-DIR})","")
rm -rf ${BUILD-DIR}
endif
.PHONY: install
install: ${NAME}
meson install -C ${BUILD-DIR} --skip-subprojects
.PHONY: uninstall
uninstall:
cd ${BUILD-DIR} && meson --internal uninstall