xref: /illumos-gate/usr/src/test/nvme-tests/cmd/Makefile (revision 564eeb7d65973f1d64a5390ff477b689707e9daf)
1#
2# This file and its contents are supplied under the terms of the
3# Common Development and Distribution License ("CDDL"), version 1.0.
4# You may only use this file in accordance with the terms of version
5# 1.0 of the CDDL.
6#
7# A full copy of the text of the CDDL should have accompanied this
8# source.  A copy of the CDDL is also available via the Internet at
9# http://www.illumos.org/license/CDDL.
10#
11
12#
13# Copyright 2026 Oxide Computer Company
14#
15
16include $(SRC)/Makefile.master
17
18CMDS = \
19	destruct-ocp \
20	destructive \
21	non-destructive \
22	unit
23
24ROOTOPTPKG = $(ROOT)/opt/nvme-tests
25ROOTCMDDIR = $(ROOTOPTPKG)/bin
26
27ROOTCMDS = $(CMDS:%=$(ROOTCMDDIR)/%)
28$(ROOTCMDS) := FILEMODE = 0555
29
30all:
31
32install: $(ROOTCMDS)
33
34clean:
35
36clobber:
37
38$(ROOTCMDS): $(ROOTCMDDIR)
39
40$(ROOTCMDDIR):
41	$(INS.dir)
42
43$(ROOTCMDDIR)/%: %.ksh
44	$(INS.rename)
45