xref: /illumos-gate/usr/src/cmd/Makefile.check (revision c69f580fb62b6cb6802814260949dcf0df1bdf04)
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	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			\
117	hostid/smf			\
118	idmap/idmapd			\
119	ipf/svc				\
120	iscsi/iscsitgtd			\
121	isns/isnsd			\
122	krb5/kadmin/server		\
123	krb5/krb5kdc			\
124	krb5/kwarn			\
125	krb5/slave			\
126	lp/cmd/lpsched			\
127	lvm/rpc.mdcommd			\
128	lvm/rpc.metad			\
129	lvm/rpc.metamedd		\
130	lvm/rpc.metamhd			\
131	lvm/md_monitord			\
132	lvm/util			\
133	picl/picld			\
134	pools/poold			\
135	print/bsd-sysv-commands		\
136	print/ppdmgr			\
137	rcap/rcapd			\
138	rpcsvc/rpc.bootparamd		\
139	sendmail/lib			\
140	smbsrv/smbd			\
141	ssh/etc				\
142	svc/milestone			\
143	tsol/labeld			\
144	tsol/tnctl			\
145	tsol/tnd			\
146	tsol/tsol-zones			\
147	vscan/vscand			\
148	xvm/ipagent			\
149	ypcmd/yppasswd			\
150	ypcmd/ypupdated
151
152$(CLOSED_BUILD)MANIFEST_SUBDIRS +=		\
153	$(CLOSED)/cmd/cmd-inet/usr.lib/in.iked
154
155DTEST_SUBDIRS= \
156	dtrace/test/tst
157
158.KEEP_STATE:
159
160# Manifests cannot be checked in parallel, because we are using the global
161# repository that is in $(SRC)/cmd/svc/seed/global.db.  This is a
162# repository that is built from the manifests in this workspace, whereas
163# the build machine's repository may be out of sync with these manifests.
164# Because we are using a private repository, svccfg-native must start up a
165# private copy of configd-native.  We cannot have multiple copies of
166# configd-native trying to access global.db simultaneously.
167
168.NO_PARALLEL:
169
170check: svccfg_check $(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS)
171
172svccfg_check:
173	@$(ECHO) "building requirements for svccfg check ..."; \
174	(cd $(SRC)/cmd/svc/seed && pwd && $(MAKE) $(MFLAGS) global.db)
175
176$(MANIFEST_TOPDIRS) $(MANIFEST_SUBDIRS) $(DTEST_SUBDIRS): FRC
177	@cd $@; pwd; $(MAKE) check
178
179FRC:
180