File 0001-add-an-install-target-to-ease-packaging.patch of Package nvmftests
From 0699c95bd3b77ad1896306d981cab40def23e093 Mon Sep 17 00:00:00 2001
From: Michael Moese <mmoese@suse.de>
Date: Thu, 1 Mar 2018 10:48:28 +0100
Subject: [PATCH] add an install target to ease packaging
Signed-off-by: Michael Moese <mmoese@suse.de>
---
Makefile | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Makefile b/Makefile
index ecb523a..eecd3ac 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,8 @@
# Author: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
#
+PREFIX?=/opt
+
help: all
all:
@@ -27,6 +29,7 @@ all:
@echo " make doc - Generate Documentation."
@echo " make cleanall - removes *pyc, documentation."
@echo " make static_check- runs pep8, flake8, and pylint on code."
+ @echo " make install - copy test suite to ${PREFIX}/nvmftests
doc:
@make -C doc/
@@ -60,4 +63,8 @@ clean:
@find . -name __pycache__ | xargs rm -fr
@find . -name \*ropeproject | xargs rm -fr
+install:
+ @mkdir -p ${PREFIX}/nvmftests
+ @cp -r * ${PREFIX}/nvmftests
+
.PHONY: doc clean cleanall
--
2.13.6