xref: /titanic_44/usr/src/cmd/Makefile.check (revision 7c499da3aede674c5b0b1326869f658436dccf13)
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#
24
25include ../Makefile.master
26
27#
28# Commands providing manifests must offer a check target.  A recursive check
29# target across all commands directories is not currently provided.
30#
31MANIFEST_TOPDIRS=			\
32	acctadm				\
33	auditd				\
34	bnu				\
35	consadm				\
36	coreadm				\
37	cron				\
38	cvcd				\
39	dispadmin			\
40	drd				\
41	dumpadm				\
42	fcinfo				\
43	fcoesvc				\
44	fm				\
45	ibd_upgrade			\
46	intrd				\
47	iscsid				\
48	iscsitsvc			\
49	kbd				\
50	keyserv				\
51	ldapcachemgr			\
52	ldmad				\
53	lms				\
54	mms				\
55	dlmgmtd				\
56	ndmpd				\
57	nscd				\
58	oplhpd				\
59	pools				\
60	power				\
61	rexd				\
62	rmvolmgr			\
63	rpcbind				\
64	rpcsvc				\
65	sa				\
66	saf				\
67	sckmd				\
68	sf880drd			\
69	smserverd			\
70	stmfproxy			\
71	stmfsvc				\
72	stmsboot			\
73	syseventd			\
74	syslogd				\
75	utmpd				\
76	vntsd				\
77	ypcmd				\
78	zoneadm				\
79	zoneadmd
80
81MANIFEST_SUBDIRS=			\
82	agents/snmp/snmprelayd		\
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.dhcpd	\
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/slpd		\
97	cmd-inet/usr.lib/vrrpd		\
98	cmd-inet/usr.lib/wpad		\
99	cmd-inet/usr.sbin		\
100	cmd-inet/usr.sbin/in.ftpd	\
101	cmd-inet/usr.sbin/in.rdisc	\
102	cmd-inet/usr.sbin/in.routed	\
103	cmd-inet/usr.sbin/in.talkd	\
104	cmd-inet/usr.sbin/ipsecutils	\
105	cmd-inet/usr.sbin/kssl/ksslcfg	\
106	cmd-inet/usr.sbin/routeadm	\
107	dcs/sparc/sun4u			\
108	dfs.cmds/sharemgr		\
109	fps/fpsd			\
110	fs.d/autofs			\
111	fs.d/nfs/svc			\
112	fs.d/smbclnt/svc		\
113	gss/gssd			\
114	hal/addons/network-devices	\
115	hal/hald/solaris		\
116	halt/smf.$(MACH)		\
117	hostid/smf			\
118	idmap/idmapd			\
119	ipf/svc				\
120	isns/isnsd			\
121	krb5/kadmin/server		\
122	krb5/krb5kdc			\
123	krb5/kwarn			\
124	krb5/slave			\
125	lp/cmd/lpsched			\
126	lvm/rpc.mdcommd			\
127	lvm/rpc.metad			\
128	lvm/rpc.metamedd		\
129	lvm/rpc.metamhd			\
130	lvm/md_monitord			\
131	lvm/util			\
132	picl/picld			\
133	pools/poold			\
134	print/bsd-sysv-commands		\
135	print/ppdmgr			\
136	rcap/rcapd			\
137	rpcsvc/rpc.bootparamd		\
138	sendmail/lib			\
139	smbsrv/smbd			\
140	ssh/etc				\
141	svc/milestone			\
142	tsol/labeld			\
143	tsol/tnctl			\
144	tsol/tnd			\
145	tsol/tsol-zones			\
146	vscan/vscand			\
147	xvm/ipagent			\
148	ypcmd/yppasswd			\
149	ypcmd/ypupdated
150
151$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
152	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
153
154DTEST_SUBDIRS= \
155	dtrace/test/tst
156
157.KEEP_STATE:
158
159# Manifests cannot be checked in parallel, because we are using the global
160# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
161# repository that is built from the manifests in this workspace, whereas
162# the build machine's repository may be out of sync with these manifests.
163# Because we are using a private repository, svccfg-native must start up a
164# private copy of configd-native.  We cannot have multiple copies of
165# configd-native trying to access global.db simultaneously.
166
167.NO_PARALLEL:
168
169check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
170
171svccfg_check:
172	@$(ECHO) "building requirements for svccfg check ..."; \
173	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
174
175$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
176	@cd $@; pwd; $(MAKE) check
177
178FRC:
179