xref: /illumos-gate/usr/src/test/net-tests/runfiles/Makefile (revision 45ede40b2394db7967e59f19288fae9b62efd4aa)
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 2019 Joyent, Inc.
14#
15include $(SRC)/Makefile.master
16
17SRCS = default.run
18ROOTOPTPKG = $(ROOT)/opt/net-tests
19RUNFILES = $(ROOTOPTPKG)/runfiles
20CMDS = $(SRCS:%=$(RUNFILES)/%)
21$(CMDS) := FILEMODE = 0444
22
23include $(SRC)/test/Makefile.com
24
25all: $(SRCS)
26
27install: $(CMDS)
28
29clobber: clean
30	$(RM) $(CMDS)
31
32$(CMDS): $(RUNFILES) $(SRCS)
33
34$(RUNFILES):
35	$(INS.dir)
36
37$(RUNFILES)/%: %
38	$(INS.file)
39