xref: /illumos-gate/usr/src/test/util-tests/tests/cpio/files/Makefile (revision 6d3b960aa395b3d268922a1938aed248a213725b)
1*6d3b960aSAndy Fiddaman#
2*6d3b960aSAndy Fiddaman# This file and its contents are supplied under the terms of the
3*6d3b960aSAndy Fiddaman# Common Development and Distribution License ("CDDL"), version 1.0.
4*6d3b960aSAndy Fiddaman# You may only use this file in accordance with the terms of version
5*6d3b960aSAndy Fiddaman# 1.0 of the CDDL.
6*6d3b960aSAndy Fiddaman#
7*6d3b960aSAndy Fiddaman# A full copy of the text of the CDDL should have accompanied this
8*6d3b960aSAndy Fiddaman# source.  A copy of the CDDL is also available via the Internet at
9*6d3b960aSAndy Fiddaman# http://www.illumos.org/license/CDDL.
10*6d3b960aSAndy Fiddaman#
11*6d3b960aSAndy Fiddaman
12*6d3b960aSAndy Fiddaman#
13*6d3b960aSAndy Fiddaman# Copyright 2020 OmniOS Community Edition (OmniOSce) Association.
14*6d3b960aSAndy Fiddaman#
15*6d3b960aSAndy Fiddaman
16*6d3b960aSAndy Fiddamaninclude $(SRC)/cmd/Makefile.cmd
17*6d3b960aSAndy Fiddamaninclude $(SRC)/test/Makefile.com
18*6d3b960aSAndy Fiddaman
19*6d3b960aSAndy FiddamanDATAFILES :sh= (print *.*)
20*6d3b960aSAndy Fiddaman
21*6d3b960aSAndy FiddamanROOTOPTPKG = $(ROOT)/opt/util-tests
22*6d3b960aSAndy FiddamanTESTDIR = $(ROOTOPTPKG)/tests/cpio
23*6d3b960aSAndy FiddamanDATADIR = $(TESTDIR)/files
24*6d3b960aSAndy Fiddaman
25*6d3b960aSAndy FiddamanDATAS = $(DATAFILES:%=$(DATADIR)/%)
26*6d3b960aSAndy Fiddaman$(DATAS) := FILEMODE = 0444
27*6d3b960aSAndy Fiddaman
28*6d3b960aSAndy Fiddamanall clean clobber:
29*6d3b960aSAndy Fiddaman
30*6d3b960aSAndy Fiddamaninstall: all $(DATAS)
31*6d3b960aSAndy Fiddaman
32*6d3b960aSAndy Fiddaman$(DATADIR): $(TESTDIR)
33*6d3b960aSAndy Fiddaman$(DATAS): $(DATADIR)
34*6d3b960aSAndy Fiddaman
35*6d3b960aSAndy Fiddaman$(TESTDIR) $(DATADIR):
36*6d3b960aSAndy Fiddaman	$(INS.dir)
37*6d3b960aSAndy Fiddaman
38*6d3b960aSAndy Fiddaman$(DATADIR)/%: %
39*6d3b960aSAndy Fiddaman	$(INS.file)
40