xref: /illumos-gate/usr/src/test/bhyve-tests/cmd/Makefile (revision 7daa540591d7332190b10fc3a818bfd5e7d536fe)
1*7daa5405SPatrick Mooney#
2*7daa5405SPatrick Mooney# This file and its contents are supplied under the terms of the
3*7daa5405SPatrick Mooney# Common Development and Distribution License ("CDDL"), version 1.0.
4*7daa5405SPatrick Mooney# You may only use this file in accordance with the terms of version
5*7daa5405SPatrick Mooney# 1.0 of the CDDL.
6*7daa5405SPatrick Mooney#
7*7daa5405SPatrick Mooney# A full copy of the text of the CDDL should have accompanied this
8*7daa5405SPatrick Mooney# source.  A copy of the CDDL is also available via the Internet at
9*7daa5405SPatrick Mooney# http://www.illumos.org/license/CDDL.
10*7daa5405SPatrick Mooney#
11*7daa5405SPatrick Mooney
12*7daa5405SPatrick Mooney#
13*7daa5405SPatrick Mooney# Copyright 2022 Oxide Computer Company
14*7daa5405SPatrick Mooney#
15*7daa5405SPatrick Mooney
16*7daa5405SPatrick Mooneyinclude $(SRC)/Makefile.master
17*7daa5405SPatrick Mooneyinclude $(SRC)/test/Makefile.com
18*7daa5405SPatrick Mooney
19*7daa5405SPatrick MooneyROOTOPTPKG = $(ROOT)/opt/bhyve-tests
20*7daa5405SPatrick MooneyROOTBIN = $(ROOTOPTPKG)/bin
21*7daa5405SPatrick Mooney
22*7daa5405SPatrick MooneyPROGS = bhyvetest
23*7daa5405SPatrick Mooney
24*7daa5405SPatrick MooneyCMDS = $(PROGS:%=$(ROOTBIN)/%)
25*7daa5405SPatrick Mooney$(CMDS) := FILEMODE = 0555
26*7daa5405SPatrick Mooney
27*7daa5405SPatrick Mooneyall lint clean clobber:
28*7daa5405SPatrick Mooney
29*7daa5405SPatrick Mooneyinstall: $(CMDS)
30*7daa5405SPatrick Mooney
31*7daa5405SPatrick Mooney$(CMDS): $(ROOTBIN)
32*7daa5405SPatrick Mooney
33*7daa5405SPatrick Mooney$(ROOTBIN):
34*7daa5405SPatrick Mooney	$(INS.dir)
35*7daa5405SPatrick Mooney
36*7daa5405SPatrick Mooney$(ROOTBIN)/%: %.ksh
37*7daa5405SPatrick Mooney	$(INS.rename)
38