/
githubmirror
/
nvme-cli
Обзор
Документация
Войти
/
githubmirror
/
nvme-cli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.2.1
Makefile
56 строк
1 KB
Simon A. F. Lund
Makefile: add 'make uninstall'
20 окт 2022, 14:01
20 окт 2022, 14:01
234a92c
Код
Авторство
О чём код?
# SPDX-License-Identifier: LGPL-2.1-or-later # # This file is part of nvme. # Copyright (c) 2021 Dell Inc. # # Authors: Martin Belanger <Martin.Belanger@dell.com> # NAME := nvme .DEFAULT_GOAL := ${NAME} BUILD-DIR := .build ${BUILD-DIR}: meson $@ @echo "Configuration located in: $@" @echo "-------------------------------------------------------" .PHONY: ${NAME} ${NAME}: ${BUILD-DIR} ninja -C ${BUILD-DIR} .PHONY: clean clean: ifneq ("$(wildcard ${BUILD-DIR})","") ninja -C ${BUILD-DIR} -t $@ endif .PHONY: purge purge: ifneq ("$(wildcard ${BUILD-DIR})","") rm -rf ${BUILD-DIR} endif .PHONY: install dist install dist: ${BUILD-DIR} cd ${BUILD-DIR} && meson $@ .PHONY: uninstall uninstall: cd ${BUILD-DIR} && meson --internal uninstall .PHONY: test test: ${BUILD-DIR} ninja -C ${BUILD-DIR} $@ .PHONY: rpm rpm: meson ${BUILD-DIR} \ -Dudevrulesdir=$(shell rpm --eval '%{_udevrulesdir}') \ -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}