xref: /titanic_51/usr/src/cmd/Makefile.check (revision 349b53dd4e695e3d833b5380540385145b2d3ae8)
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	lms				\
53	mms				\
54	dlmgmtd				\
55	ndmpd				\
56	nscd				\
57	oplhpd				\
58	pools				\
59	power				\
60	rexd				\
61	rmvolmgr			\
62	rpcbind				\
63	rpcsvc				\
64	sa				\
65	saf				\
66	sckmd				\
67	sf880drd			\
68	smserverd			\
69	stmfsvc				\
70	stmsboot			\
71	syseventd			\
72	syslogd				\
73	utmpd				\
74	vntsd				\
75	ypcmd				\
76	zoneadm				\
77	zoneadmd
78
79MANIFEST_SUBDIRS=			\
80	agents/snmp/snmprelayd		\
81	boot/scripts			\
82	cmd-crypto/scripts		\
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/wpad		\
95	cmd-inet/usr.sbin		\
96	cmd-inet/usr.sbin/in.ftpd	\
97	cmd-inet/usr.sbin/in.rdisc	\
98	cmd-inet/usr.sbin/in.routed	\
99	cmd-inet/usr.sbin/in.talkd	\
100	cmd-inet/usr.sbin/ipsecutils	\
101	cmd-inet/usr.sbin/kssl/ksslcfg	\
102	cmd-inet/usr.sbin/routeadm	\
103	dcs/sparc/sun4u			\
104	dfs.cmds/sharemgr		\
105	fps/fpsd			\
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			\
113	hostid/smf			\
114	idmap/idmapd			\
115	ipf/svc				\
116	iscsi/iscsitgtd			\
117	isns/isnsd			\
118	krb5/kadmin/server		\
119	krb5/krb5kdc			\
120	krb5/kwarn			\
121	krb5/slave			\
122	lp/cmd/lpsched			\
123	lvm/rpc.mdcommd			\
124	lvm/rpc.metad			\
125	lvm/rpc.metamedd		\
126	lvm/rpc.metamhd			\
127	lvm/md_monitord			\
128	lvm/util			\
129	picl/picld			\
130	pools/poold			\
131	print/bsd-sysv-commands		\
132	print/ppdmgr			\
133	rcap/rcapd			\
134	rpcsvc/rpc.bootparamd		\
135	sendmail/lib			\
136	smbsrv/smbd			\
137	ssh/etc				\
138	svc/milestone			\
139	tsol/labeld			\
140	tsol/tnctl			\
141	tsol/tnd			\
142	tsol/tsol-zones			\
143	vscan/vscand			\
144	xvm/ipagent			\
145	ypcmd/yppasswd			\
146	ypcmd/ypupdated
147
148$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
149	$(CLOSED)/cmd/smartcard/daemon		\
150	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
151
152DTEST_SUBDIRS= \
153	dtrace/test/tst
154
155.KEEP_STATE:
156
157# Manifests cannot be checked in parallel, because we are using the global
158# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
159# repository that is built from the manifests in this workspace, whereas
160# the build machine's repository may be out of sync with these manifests.
161# Because we are using a private repository, svccfg-native must start up a
162# private copy of configd-native.  We cannot have multiple copies of
163# configd-native trying to access global.db simultaneously.
164
165.NO_PARALLEL:
166
167check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
168
169svccfg_check:
170	@$(ECHO) "building requirements for svccfg check ..."; \
171	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
172
173$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
174	@cd $@; pwd; $(MAKE) check
175
176FRC:
177