]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Makefile: Add 'make debug' for debug build
authorSteven Seungcheol Lee <sc108.lee@samsung.com>
Thu, 13 Oct 2022 06:16:19 +0000 (15:16 +0900)
committerSteven Seungcheol Lee <sc108.lee@samsung.com>
Thu, 13 Oct 2022 06:16:19 +0000 (15:16 +0900)
Signed-off-by: Steven Seungcheol Lee <sc108.lee@samsung.com>
Makefile

index 085adf8fb0dcfd5a3219e079b93f6eafd833bb5d..d93bd3e6c7e80cc5bfbc7d5c265625ea880361ef 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -45,3 +45,8 @@ rpm:
                -Dsystemddir=$(shell rpm --eval '%{_unitdir}') \
                -Ddocs=man -Ddocs-build=true
        rpmbuild -ba ${BUILD-DIR}/nvme.spec --define "_builddir ${BUILD-DIR}" -v
+
+.PHONY: debug
+debug:
+       meson ${BUILD-DIR} --buildtype=debug
+       ninja -C ${BUILD-DIR}