7710 degradation after 7512 with GNU find and GNU echo
[unleashed.git] / usr / src / test / zfs-tests / Makefile.com
blobba9344de5348429d3f313470444d8c6acc4ffd96
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.
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.
13 # Copyright (c) 2016, 2017 by Delphix. All rights reserved.
16 # The following file name generation rules allow the addition of tests,
17 # libraries and other miscellaneous files without having to specify them
18 # all individually in lower level Makefiles.
19 PROGS:sh = find . -maxdepth 1 -type f \( \
20     -name "*.ksh" -o \
21     -name "*.sh" \)
22 FILES:sh = find . -maxdepth 1 -type f \( \
23     -name "*.Z" -o \
24     -name "*.bz2" -o \
25     -name "*.cfg" -o \
26     -name "*.d" -o \
27     -name "*.err" -o \
28     -name "*.fio" -o \
29     -name "*.out" -o \
30     -name "*.run" -o \
31     -name "*shlib" -o \
32     -name "*.txt" -o \
33     -name "*.zcp" \)
35 CMDS = $(PROGS:%.sh=$(TARGETDIR)/%)
36 CMDS += $(PROGS:%.ksh=$(TARGETDIR)/%)
37 $(CMDS) := FILEMODE = 0555
39 LIBS = $(FILES:%=$(TARGETDIR)/%)
40 $(LIBS) := FILEMODE = 0444
42 all lint clean clobber:
44 install: $(CMDS) $(LIBS)
46 $(CMDS): $(TARGETDIR)
48 $(LIBS): $(TARGETDIR)
50 $(TARGETDIR):
51         $(INS.dir)
53 $(TARGETDIR)/%: %.sh
54         $(INS.rename)
56 $(TARGETDIR)/%: %.ksh
57         $(INS.rename)
59 $(TARGETDIR)/%: %
60         $(INS.file)
62 .PARALLEL: $(SUBDIRS)
63 SUBDIRS:sh = find ./* -maxdepth 0 -type d