xref: /titanic_51/usr/src/cmd/Makefile.check (revision a799b1e741b6f59012a469e6b57c40cb8061127b)
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 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25
26include ../Makefile.master
27
28#
29# Commands providing manifests must offer a check target.  A recursive check
30# target across all commands directories is not currently provided.
31#
32MANIFEST_TOPDIRS=			\
33	acctadm				\
34	auditd				\
35	bnu				\
36	consadm				\
37	coreadm				\
38	cron				\
39	cvcd				\
40	dispadmin			\
41	drd				\
42	dumpadm				\
43	fcinfo				\
44	fcoesvc				\
45	fm				\
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	stmfsvc				\
71	stmsboot			\
72	syseventd			\
73	syslogd				\
74	utmpd				\
75	vntsd				\
76	ypcmd				\
77	zoneadm				\
78	zoneadmd
79
80MANIFEST_SUBDIRS=			\
81	agents/snmp/snmprelayd		\
82	boot/scripts			\
83	cmd-crypto/scripts		\
84	cmd-inet/usr.lib/in.chargend	\
85	cmd-inet/usr.lib/in.daytimed	\
86	cmd-inet/usr.lib/in.dhcpd	\
87	cmd-inet/usr.lib/in.discardd	\
88	cmd-inet/usr.lib/in.echod	\
89	cmd-inet/usr.lib/in.ndpd	\
90	cmd-inet/usr.lib/in.ripngd	\
91	cmd-inet/usr.lib/in.timed	\
92	cmd-inet/usr.lib/inetd		\
93	cmd-inet/usr.lib/mdnsd		\
94	cmd-inet/usr.lib/slpd		\
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	fps/fpsd			\
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			\
114	hostid/smf			\
115	idmap/idmapd			\
116	ipf/svc				\
117	iscsi/iscsitgtd			\
118	isns/isnsd			\
119	krb5/kadmin/server		\
120	krb5/krb5kdc			\
121	krb5/kwarn			\
122	krb5/slave			\
123	lp/cmd/lpsched			\
124	lvm/rpc.mdcommd			\
125	lvm/rpc.metad			\
126	lvm/rpc.metamedd		\
127	lvm/rpc.metamhd			\
128	lvm/md_monitord			\
129	lvm/util			\
130	picl/picld			\
131	pools/poold			\
132	print/bsd-sysv-commands		\
133	print/ppdmgr			\
134	rcap/rcapd			\
135	rpcsvc/rpc.bootparamd		\
136	sendmail/lib			\
137	smbsrv/smbd			\
138	ssh/etc				\
139	svc/milestone			\
140	tsol/labeld			\
141	tsol/tnctl			\
142	tsol/tnd			\
143	tsol/tsol-zones			\
144	vscan/vscand			\
145	xvm/ipagent			\
146	ypcmd/yppasswd			\
147	ypcmd/ypupdated
148
149$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
150	$(CLOSED)/cmd/smartcard/daemon		\
151	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
152
153DTEST_SUBDIRS= \
154	dtrace/test/tst
155
156.KEEP_STATE:
157
158# Manifests cannot be checked in parallel, because we are using the global
159# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
160# repository that is built from the manifests in this workspace, whereas
161# the build machine's repository may be out of sync with these manifests.
162# Because we are using a private repository, svccfg-native must start up a
163# private copy of configd-native.  We cannot have multiple copies of
164# configd-native trying to access global.db simultaneously.
165
166.NO_PARALLEL:
167
168check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
169
170svccfg_check:
171	@$(ECHO) "building requirements for svccfg check ..."; \
172	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
173
174$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
175	@cd $@; pwd; $(MAKE) check
176
177FRC:
178