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