xref: /illumos-gate/usr/src/test/util-tests/tests/svr4pkg/files/data/Makefile (revision c21bd51d7acbaf77116c4cc3a23dfc6d16c637c2)
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 (c) 2013 by Delphix. All rights reserved.
14# Copyright 2014 Nexenta Systems, Inc. All rights reserved.
15# Copyright 2020 Peter Tribble.
16# Copyright 2020 Oxide Computer Company
17#
18
19include $(SRC)/cmd/Makefile.cmd
20
21ROOTOPTPKG = $(ROOT)/opt/util-tests
22TESTDIR = $(ROOTOPTPKG)/tests/files/svr4pkg/data
23
24DIRS = a b
25FILES = a/file1.txt b/file2.txt
26IDIRS = $(DIRS:%=$(TESTDIR)/%)
27IFILES = $(FILES:%=$(TESTDIR)/%)
28
29$(IFILES) := FILEMODE = 0444
30
31all clean clobber:
32
33install: $(IDIRS) $(IFILES)
34
35$(CMDS): $(TESTDIR)
36
37$(IDIRS):
38	$(INS.dir)
39
40$(TESTDIR)/%: %
41	$(INS.file)
42
43include $(SRC)/test/Makefile.com
44