xref: /illumos-gate/usr/src/test/util-tests/tests/make/files/Makefile (revision ae389aa988ce154c9f8d5d4dbe4a63c3744339f4)
1*ae389aa9SAndy Fiddaman#
2*ae389aa9SAndy Fiddaman# This file and its contents are supplied under the terms of the
3*ae389aa9SAndy Fiddaman# Common Development and Distribution License ("CDDL"), version 1.0.
4*ae389aa9SAndy Fiddaman# You may only use this file in accordance with the terms of version
5*ae389aa9SAndy Fiddaman# 1.0 of the CDDL.
6*ae389aa9SAndy Fiddaman#
7*ae389aa9SAndy Fiddaman# A full copy of the text of the CDDL should have accompanied this
8*ae389aa9SAndy Fiddaman# source.  A copy of the CDDL is also available via the Internet at
9*ae389aa9SAndy Fiddaman# http://www.illumos.org/license/CDDL.
10*ae389aa9SAndy Fiddaman#
11*ae389aa9SAndy Fiddaman
12*ae389aa9SAndy Fiddaman#
13*ae389aa9SAndy Fiddaman# Copyright 2019 OmniOS Community Edition (OmniOSce) Association.
14*ae389aa9SAndy Fiddaman#
15*ae389aa9SAndy Fiddaman
16*ae389aa9SAndy Fiddamaninclude $(SRC)/cmd/Makefile.cmd
17*ae389aa9SAndy Fiddamaninclude $(SRC)/test/Makefile.com
18*ae389aa9SAndy Fiddaman
19*ae389aa9SAndy FiddamanROOTOPTPKG = $(ROOT)/opt/util-tests
20*ae389aa9SAndy FiddamanTESTDIR = $(ROOTOPTPKG)/tests/files
21*ae389aa9SAndy Fiddaman
22*ae389aa9SAndy FiddamanDIRS = make_a make_a/a make_a/b make_a/c
23*ae389aa9SAndy FiddamanLDIR = make_l
24*ae389aa9SAndy FiddamanFILES = $(DIRS:%=%/Makefile) $(DIRS:%=%/make.rules)
25*ae389aa9SAndy Fiddaman
26*ae389aa9SAndy FiddamanIDIRS = $(DIRS:%=$(TESTDIR)/%) $(LDIR:%=$(TESTDIR)/%)
27*ae389aa9SAndy FiddamanCMDS = $(FILES:%=$(TESTDIR)/%)
28*ae389aa9SAndy Fiddaman$(CMDS) := FILEMODE = 0444
29*ae389aa9SAndy Fiddaman
30*ae389aa9SAndy Fiddamanall lint clean clobber:
31*ae389aa9SAndy Fiddaman
32*ae389aa9SAndy Fiddamaninstall: $(IDIRS) $(CMDS)
33*ae389aa9SAndy Fiddaman
34*ae389aa9SAndy Fiddaman$(CMDS): $(TESTDIR)
35*ae389aa9SAndy Fiddaman
36*ae389aa9SAndy Fiddaman$(TESTDIR) $(IDIRS):
37*ae389aa9SAndy Fiddaman	$(INS.dir)
38*ae389aa9SAndy Fiddaman
39*ae389aa9SAndy Fiddaman$(TESTDIR)/%: %
40*ae389aa9SAndy Fiddaman	$(INS.file)
41