Merging upstream version 1.12.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
8d543389aa
commit
a3d0cc5ebd
1005 changed files with 9469 additions and 1830 deletions
30
Makefile
30
Makefile
|
@ -9,38 +9,52 @@ NAME := libnvme
|
|||
.DEFAULT_GOAL := ${NAME}
|
||||
BUILD-DIR := .build
|
||||
|
||||
.PHONY: update-subprojects
|
||||
update-subprojects:
|
||||
meson subprojects update
|
||||
|
||||
${BUILD-DIR}:
|
||||
meson $@
|
||||
meson setup $@
|
||||
@echo "Configuration located in: $@"
|
||||
@echo "-------------------------------------------------------"
|
||||
|
||||
.PHONY: ${NAME}
|
||||
${NAME}: ${BUILD-DIR}
|
||||
ninja -C ${BUILD-DIR}
|
||||
meson compile -C ${BUILD-DIR}
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
ifneq ("$(wildcard ${BUILD-DIR})","")
|
||||
ninja -C ${BUILD-DIR} -t $@
|
||||
meson compile --clean -C ${BUILD-DIR}
|
||||
endif
|
||||
|
||||
.PHONY: purge
|
||||
purge:
|
||||
ifneq ("$(wildcard ${BUILD-DIR})","")
|
||||
rm -rf ${BUILD-DIR}
|
||||
meson subprojects purge --confirm
|
||||
endif
|
||||
|
||||
.PHONY: install dist
|
||||
install dist: ${BUILD-DIR}
|
||||
cd ${BUILD-DIR} && meson $@
|
||||
.PHONY: install
|
||||
install: ${NAME}
|
||||
meson install -C ${BUILD-DIR} --skip-subprojects
|
||||
|
||||
.PHONY: uninstall
|
||||
uninstall:
|
||||
cd ${BUILD-DIR} && meson --internal uninstall
|
||||
|
||||
.PHONY: dist
|
||||
dist: ${NAME}
|
||||
meson dist -C ${BUILD-DIR} --formats gztar
|
||||
|
||||
.PHONY: test
|
||||
test: ${BUILD-DIR}
|
||||
ninja -C ${BUILD-DIR} $@
|
||||
test: ${NAME}
|
||||
meson test -C ${BUILD-DIR}
|
||||
|
||||
# Test strictly libnvme (do not run tests on all the subprojects)
|
||||
.PHONY: test-strict
|
||||
test-strict: ${NAME}
|
||||
meson test -C ${BUILD-DIR} --suite libnvme
|
||||
|
||||
.PHONY: rpm
|
||||
rpm: ${BUILD-DIR}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue