Merge branch 'less_closed'
[unleashed.git] / usr / src / cmd / Makefile.check
blob5f544c393beb83c7fbebd9a1d01b647cbb0da3fd
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 2016 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         bnu                             \
38         consadm                         \
39         coreadm                         \
40         cron                            \
41         cvcd                            \
42         dispadmin                       \
43         drd                             \
44         dumpadm                         \
45         fcinfo                          \
46         fcoesvc                         \
47         fm                              \
48         ibd_upgrade                     \
49         intrd                           \
50         iscsid                          \
51         iscsitsvc                       \
52         kbd                             \
53         keyserv                         \
54         ldapcachemgr                    \
55         ldmad                           \
56         lms                             \
57         dlmgmtd                         \
58         ndmpd                           \
59         nscd                            \
60         oplhpd                          \
61         pools                           \
62         power                           \
63         rexd                            \
64         rmvolmgr                        \
65         rpcbind                         \
66         rpcsvc                          \
67         sa                              \
68         saf                             \
69         sckmd                           \
70         sf880drd                        \
71         smserverd                       \
72         stmfproxy                       \
73         stmfsvc                         \
74         stmsboot                        \
75         syseventd                       \
76         syslogd                         \
77         utmpd                           \
78         vntsd                           \
79         ypcmd                           \
80         zoneadm                         \
81         zoneadmd
83 MANIFEST_SUBDIRS=                       \
84         boot/scripts                    \
85         cmd-crypto/scripts              \
86         cmd-inet/usr.lib/ilbd           \
87         cmd-inet/usr.lib/in.chargend    \
88         cmd-inet/usr.lib/in.daytimed    \
89         cmd-inet/usr.lib/in.discardd    \
90         cmd-inet/usr.lib/in.echod       \
91         cmd-inet/usr.lib/in.ndpd        \
92         cmd-inet/usr.lib/in.ripngd      \
93         cmd-inet/usr.lib/in.timed       \
94         cmd-inet/usr.lib/inetd          \
95         cmd-inet/usr.lib/mdnsd          \
96         cmd-inet/usr.lib/vrrpd          \
97         cmd-inet/usr.lib/wpad           \
98         cmd-inet/usr.sbin               \
99         cmd-inet/usr.sbin/in.rdisc      \
100         cmd-inet/usr.sbin/in.routed     \
101         cmd-inet/usr.sbin/in.talkd      \
102         cmd-inet/usr.sbin/ipsecutils    \
103         cmd-inet/usr.sbin/routeadm      \
104         dcs/sparc/sun4u                 \
105         dfs.cmds/sharemgr               \
106         fs.d/autofs                     \
107         fs.d/nfs/svc                    \
108         fs.d/smbclnt/svc                \
109         gss/gssd                        \
110         hal/addons/network-devices      \
111         hal/hald/solaris                \
112         halt/smf.$(MACH)                \
113         hostid/smf                      \
114         idmap/idmapd                    \
115         ipf/svc                         \
116         isns/isnsd                      \
117         krb5/kadmin/server              \
118         krb5/krb5kdc                    \
119         krb5/kwarn                      \
120         krb5/slave                      \
121         lp/cmd/lpsched                  \
122         picl/picld                      \
123         rcap/rcapd                      \
124         rpcsvc/rpc.bootparamd           \
125         smbsrv/smbd                     \
126         ssh                             \
127         svc/milestone                   \
128         tsol/labeld                     \
129         tsol/tnctl                      \
130         tsol/tnd                        \
131         tsol/tsol-zones                 \
132         vscan/vscand                    \
133         xvm/ipagent                     \
134         ypcmd/yppasswd                  \
135         ypcmd/ypupdated                 \
136         zonestat/zonestatd
138 MISC_SUBDIRS=           \
139         dtrace/test/tst \
140         sgs
142 .KEEP_STATE:
144 # Manifests cannot be checked in parallel, because we are using the global
145 # repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
146 # repository that is built from the manifests in this workspace, whereas
147 # the build machine's repository may be out of sync with these manifests.
148 # Because we are using a private repository, svccfg-native must start up a
149 # private copy of configd-native.  We cannot have multiple copies of
150 # configd-native trying to access global.db simultaneously.
152 .NO_PARALLEL:
154 check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
156 svccfg_check:
157         @$(ECHO) "building requirements for svccfg check ..."; \
158         (cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
160 $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
161         @cd $@; pwd; $(MAKE) check
163 FRC: