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