xref: /illumos-gate/usr/src/test/util-tests/tests/sed/bsd/Makefile (revision 20a7641f9918de8574b8b3b47dbe35c4bfc78df1)
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 2020 OmniOS Community Edition (OmniOSce) Association.
14#
15
16include $(SRC)/cmd/Makefile.cmd
17include $(SRC)/test/Makefile.com
18
19PROG = multi_test
20DATAFILES :sh= (cd regress.multitest.out; print *)
21
22ROOTOPTPKG = $(ROOT)/opt/util-tests
23TESTDIR = $(ROOTOPTPKG)/tests/sed
24DATADIR = $(TESTDIR)/regress.multitest.out
25
26TESTS = $(PROG:%=$(TESTDIR)/%)
27DATAS = $(DATAFILES:%=$(DATADIR)/%)
28$(TESTS) := FILEMODE = 0555
29$(DATAS) := FILEMODE = 0444
30
31all clean clobber:
32
33install: all $(TESTS) $(DATAS)
34
35$(TESTS): $(TESTDIR) $(PROG).ksh
36$(DATAS): $(DATADIR)
37
38$(TESTDIR) $(DATADIR):
39	$(INS.dir)
40
41$(TESTDIR)/%: %.ksh
42	$(INS.rename)
43
44$(DATADIR)/%: regress.multitest.out/%
45	$(INS.file)
46