xref: /titanic_41/usr/src/cmd/Makefile.check (revision c037192b037119c9fd354732fc29b38ce097d356)
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# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23
24include ../Makefile.master
25
26#
27# Commands providing manifests must offer a check target.  A recursive check
28# target across all commands directories is not currently provided.
29#
30MANIFEST_TOPDIRS=			\
31	acctadm				\
32	auditd				\
33	bnu				\
34	consadm				\
35	coreadm				\
36	cron				\
37	cvcd				\
38	dispadmin			\
39	drd				\
40	dumpadm				\
41	fcinfo				\
42	fcoesvc				\
43	fm				\
44	ibd_upgrade			\
45	intrd				\
46	iscsid				\
47	iscsitsvc			\
48	kbd				\
49	keyserv				\
50	ldapcachemgr			\
51	ldmad				\
52	lms				\
53	dlmgmtd				\
54	ndmpd				\
55	nscd				\
56	oplhpd				\
57	pools				\
58	power				\
59	rexd				\
60	rmvolmgr			\
61	rpcbind				\
62	rpcsvc				\
63	sa				\
64	saf				\
65	sckmd				\
66	sf880drd			\
67	smserverd			\
68	stmfproxy			\
69	stmfsvc				\
70	stmsboot			\
71	syseventd			\
72	syslogd				\
73	utmpd				\
74	vntsd				\
75	ypcmd				\
76	zoneadm				\
77	zoneadmd
78
79MANIFEST_SUBDIRS=			\
80	boot/scripts			\
81	cmd-crypto/scripts		\
82	cmd-inet/usr.lib/ilbd		\
83	cmd-inet/usr.lib/in.chargend	\
84	cmd-inet/usr.lib/in.daytimed	\
85	cmd-inet/usr.lib/in.dhcpd	\
86	cmd-inet/usr.lib/in.discardd	\
87	cmd-inet/usr.lib/in.echod	\
88	cmd-inet/usr.lib/in.ndpd	\
89	cmd-inet/usr.lib/in.ripngd	\
90	cmd-inet/usr.lib/in.timed	\
91	cmd-inet/usr.lib/inetd		\
92	cmd-inet/usr.lib/mdnsd		\
93	cmd-inet/usr.lib/slpd		\
94	cmd-inet/usr.lib/vrrpd		\
95	cmd-inet/usr.lib/wpad		\
96	cmd-inet/usr.sbin		\
97	cmd-inet/usr.sbin/in.ftpd	\
98	cmd-inet/usr.sbin/in.rdisc	\
99	cmd-inet/usr.sbin/in.routed	\
100	cmd-inet/usr.sbin/in.talkd	\
101	cmd-inet/usr.sbin/ipsecutils	\
102	cmd-inet/usr.sbin/kssl/ksslcfg	\
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	lvm/rpc.mdcommd			\
123	lvm/rpc.metad			\
124	lvm/rpc.metamedd		\
125	lvm/rpc.metamhd			\
126	lvm/md_monitord			\
127	lvm/util			\
128	picl/picld			\
129	pools/poold			\
130	print/bsd-sysv-commands		\
131	print/ppdmgr			\
132	rcap/rcapd			\
133	rpcsvc/rpc.bootparamd		\
134	sendmail/lib			\
135	smbsrv/smbd			\
136	ssh/etc				\
137	svc/milestone			\
138	tsol/labeld			\
139	tsol/tnctl			\
140	tsol/tnd			\
141	tsol/tsol-zones			\
142	vscan/vscand			\
143	xvm/ipagent			\
144	ypcmd/yppasswd			\
145	ypcmd/ypupdated			\
146	zonestat/zonestatd
147
148MISC_SUBDIRS=		\
149	dtrace/test/tst \
150	sgs
151
152.KEEP_STATE:
153
154# Manifests cannot be checked in parallel, because we are using the global
155# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
156# repository that is built from the manifests in this workspace, whereas
157# the build machine's repository may be out of sync with these manifests.
158# Because we are using a private repository, svccfg-native must start up a
159# private copy of configd-native.  We cannot have multiple copies of
160# configd-native trying to access global.db simultaneously.
161
162.NO_PARALLEL:
163
164check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS)
165
166svccfg_check:
167	@$(ECHO) "building requirements for svccfg check ..."; \
168	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
169
170$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(MISC_SUBDIRS): FRC
171	@cd $@; pwd; $(MAKE) check
172
173FRC:
174