Merge branch 'cleanups'
[unleashed.git] / usr / src / cmd / Makefile.check
blobe34cdb0aa13cfd9be2c663d44a3e1b1826d7e0ac
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2017 Nexenta Systems, Inc.
28 include ../Makefile.master
31 # Commands providing manifests must offer a check target.  A recursive check
32 # target across all commands directories is not currently provided.
34 MANIFEST_TOPDIRS=                       \
35         acctadm                         \
36         auditd                          \
37         consadm                         \
38         coreadm                         \
39         cron                            \
40         dispadmin                       \
41         dumpadm                         \
42         fcinfo                          \
43         fcoesvc                         \
44         fm                              \
45         ibd_upgrade                     \
46         intrd                           \
47         iscsid                          \
48         iscsitsvc                       \
49         kbd                             \
50         keyserv                         \
51         ldapcachemgr                    \
52         dlmgmtd                         \
53         ndmpd                           \
54         nscd                            \
55         pools                           \
56         power                           \
57         rmvolmgr                        \
58         rpcbind                         \
59         rpcsvc                          \
60         sa                              \
61         saf                             \
62         smserverd                       \
63         stmfsvc                         \
64         stmsboot                        \
65         syseventd                       \
66         syslogd                         \
67         utmpd                           \
68         ypcmd                           \
69         zoneadm                         \
70         zoneadmd
72 MANIFEST_SUBDIRS=                       \
73         boot/scripts                    \
74         cmd-crypto/scripts              \
75         cmd-inet/usr.lib/ilbd           \
76         cmd-inet/usr.lib/in.chargend    \
77         cmd-inet/usr.lib/in.daytimed    \
78         cmd-inet/usr.lib/in.discardd    \
79         cmd-inet/usr.lib/in.echod       \
80         cmd-inet/usr.lib/in.ndpd        \
81         cmd-inet/usr.lib/in.ripngd      \
82         cmd-inet/usr.lib/in.timed       \
83         cmd-inet/usr.lib/inetd          \
84         cmd-inet/usr.lib/mdnsd          \
85         cmd-inet/usr.lib/vrrpd          \
86         cmd-inet/usr.lib/wpad           \
87         cmd-inet/usr.sbin               \
88         cmd-inet/usr.sbin/in.rdisc      \
89         cmd-inet/usr.sbin/in.routed     \
90         cmd-inet/usr.sbin/in.talkd      \
91         cmd-inet/usr.sbin/ipsecutils    \
92         dfs.cmds/sharemgr               \
93         fs.d/autofs                     \
94         fs.d/nfs/svc                    \
95         fs.d/smbclnt/svc                \
96         gss/gssd                        \
97         hal/addons/network-devices      \
98         hal/hald/solaris                \
99         halt/smf.$(MACH)                \
100         hostid/smf                      \
101         idmap/idmapd                    \
102         ipf/svc                         \
103         isns/isnsd                      \
104         krb5/kadmin/server              \
105         krb5/krb5kdc                    \
106         krb5/kwarn                      \
107         krb5/slave                      \
108         picl/picld                      \
109         rcap/rcapd                      \
110         rpcsvc/rpc.bootparamd           \
111         smbsrv/smbd                     \
112         svc/milestone                   \
113         vscan/vscand                    \
114         ypcmd/yppasswd                  \
115         ypcmd/ypupdated                 \
116         zonestat/zonestatd
118 MISC_SUBDIRS=           \
119         dtrace/test/tst \
120         sgs
122 .KEEP_STATE:
124 # Manifests cannot be checked in parallel, because we are using the global
125 # repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
126 # repository that is built from the manifests in this workspace, whereas
127 # the build machine's repository may be out of sync with these manifests.
128 # Because we are using a private repository, svccfg-native must start up a
129 # private copy of configd-native.  We cannot have multiple copies of
130 # configd-native trying to access global.db simultaneously.
132 .NO_PARALLEL:
134 check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
136 svccfg_check:
137         @$(ECHO) "building requirements for svccfg check ..."; \
138         (cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
140 $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
141         @cd $@; pwd; $(MAKE) check
143 FRC: