xref: /titanic_51/usr/src/cmd/Makefile.check (revision 6298d5285e2394ba869ed330bfa7d7ef65fd7f55)
1#
2# CDDL HEADER START
3#
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.
7#
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.
12#
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]
18#
19# CDDL HEADER END
20#
21
22#
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.
26#
27
28include ../Makefile.master
29
30#
31# Commands providing manifests must offer a check target.  A recursive check
32# target across all commands directories is not currently provided.
33#
34MANIFEST_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	dlmgmtd				\
57	ndmpd				\
58	nscd				\
59	oplhpd				\
60	pools				\
61	power				\
62	rexd				\
63	rmvolmgr			\
64	rpcbind				\
65	rpcsvc				\
66	sa				\
67	saf				\
68	sckmd				\
69	sf880drd			\
70	smserverd			\
71	stmfproxy			\
72	stmfsvc				\
73	stmsboot			\
74	syseventd			\
75	syslogd				\
76	utmpd				\
77	vntsd				\
78	ypcmd				\
79	zoneadm				\
80	zoneadmd
81
82MANIFEST_SUBDIRS=			\
83	boot/scripts			\
84	cmd-crypto/scripts		\
85	cmd-inet/usr.lib/ilbd		\
86	cmd-inet/usr.lib/in.chargend	\
87	cmd-inet/usr.lib/in.daytimed	\
88	cmd-inet/usr.lib/in.discardd	\
89	cmd-inet/usr.lib/in.echod	\
90	cmd-inet/usr.lib/in.ndpd	\
91	cmd-inet/usr.lib/in.ripngd	\
92	cmd-inet/usr.lib/in.timed	\
93	cmd-inet/usr.lib/inetd		\
94	cmd-inet/usr.lib/mdnsd		\
95	cmd-inet/usr.lib/slpd		\
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/kssl/ksslcfg	\
104	cmd-inet/usr.sbin/routeadm	\
105	dcs/sparc/sun4u			\
106	dfs.cmds/sharemgr		\
107	fs.d/autofs			\
108	fs.d/nfs/svc			\
109	fs.d/smbclnt/svc		\
110	gss/gssd			\
111	hal/addons/network-devices	\
112	hal/hald/solaris		\
113	halt/smf.$(MACH)		\
114	hostid/smf			\
115	idmap/idmapd			\
116	ipf/svc				\
117	isns/isnsd			\
118	krb5/kadmin/server		\
119	krb5/krb5kdc			\
120	krb5/kwarn			\
121	krb5/slave			\
122	lp/cmd/lpsched			\
123	picl/picld			\
124	pools/poold			\
125	print/bsd-sysv-commands		\
126	print/ppdmgr			\
127	rcap/rcapd			\
128	rpcsvc/rpc.bootparamd		\
129	sendmail/lib			\
130	smbsrv/smbd			\
131	svc/milestone			\
132	tsol/labeld			\
133	tsol/tnctl			\
134	tsol/tnd			\
135	tsol/tsol-zones			\
136	vscan/vscand			\
137	ypcmd/yppasswd			\
138	ypcmd/ypupdated			\
139	zonestat/zonestatd
140
141MISC_SUBDIRS=		\
142	dtrace/test/tst \
143	sgs
144
145.KEEP_STATE:
146
147# Manifests cannot be checked in parallel, because we are using the global
148# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
149# repository that is built from the manifests in this workspace, whereas
150# the build machine's repository may be out of sync with these manifests.
151# Because we are using a private repository, svccfg-native must start up a
152# private copy of configd-native.  We cannot have multiple copies of
153# configd-native trying to access global.db simultaneously.
154
155.NO_PARALLEL:
156
157check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
158
159svccfg_check:
160	@$(ECHO) "building requirements for svccfg check ..."; \
161	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
162
163$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
164	@cd $@; pwd; $(MAKE) check
165
166FRC:
167