Merge commit 'b1e7e97d3b60469b243b3b2e22c7d8cbd11c7c90'
[unleashed.git] / usr / src / cmd / Makefile.check
blob622f4305c69b06ad079caab6c16c5f84cf666942
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         sa                              \
60         saf                             \
61         smserverd                       \
62         stmfsvc                         \
63         stmsboot                        \
64         syseventd                       \
65         syslogd                         \
66         utmpd                           \
67         ypcmd                           \
68         zoneadm                         \
69         zoneadmd
71 MANIFEST_SUBDIRS=                       \
72         boot/scripts                    \
73         cmd-crypto/scripts              \
74         cmd-inet/usr.lib/ilbd           \
75         cmd-inet/usr.lib/in.chargend    \
76         cmd-inet/usr.lib/in.daytimed    \
77         cmd-inet/usr.lib/in.discardd    \
78         cmd-inet/usr.lib/in.echod       \
79         cmd-inet/usr.lib/in.ndpd        \
80         cmd-inet/usr.lib/in.ripngd      \
81         cmd-inet/usr.lib/in.timed       \
82         cmd-inet/usr.lib/inetd          \
83         cmd-inet/usr.lib/mdnsd          \
84         cmd-inet/usr.lib/vrrpd          \
85         cmd-inet/usr.lib/wpad           \
86         cmd-inet/usr.sbin               \
87         cmd-inet/usr.sbin/in.rdisc      \
88         cmd-inet/usr.sbin/in.routed     \
89         cmd-inet/usr.sbin/in.talkd      \
90         cmd-inet/usr.sbin/ipsecutils    \
91         dfs.cmds/sharemgr               \
92         fs.d/autofs                     \
93         fs.d/nfs/svc                    \
94         fs.d/smbclnt/svc                \
95         gss/gssd                        \
96         hal/addons/network-devices      \
97         hal/hald/solaris                \
98         halt/smf.$(MACH)                \
99         hostid/smf                      \
100         idmap/idmapd                    \
101         ipf/svc                         \
102         isns/isnsd                      \
103         krb5/kadmin/server              \
104         krb5/krb5kdc                    \
105         krb5/kwarn                      \
106         krb5/slave                      \
107         rcap/rcapd                      \
108         rpcsvc/rpc.bootparamd           \
109         smbsrv/smbd                     \
110         svc/milestone                   \
111         vscan/vscand                    \
112         ypcmd/yppasswd                  \
113         ypcmd/ypupdated                 \
114         zonestat/zonestatd
116 MISC_SUBDIRS=           \
117         dtrace/test/tst \
118         sgs
120 .KEEP_STATE:
122 # Manifests cannot be checked in parallel, because we are using the global
123 # repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
124 # repository that is built from the manifests in this workspace, whereas
125 # the build machine's repository may be out of sync with these manifests.
126 # Because we are using a private repository, svccfg-native must start up a
127 # private copy of configd-native.  We cannot have multiple copies of
128 # configd-native trying to access global.db simultaneously.
130 .NO_PARALLEL:
132 check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
134 svccfg_check:
135         @$(ECHO) "building requirements for svccfg check ..."; \
136         (cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
138 $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
139         @cd $@; pwd; $(MAKE) check
141 FRC: