cmd/Makefile: remove praudit for MSGSUBDIRS
[unleashed.git] / usr / src / cmd / Makefile
blob74f664da6c5437779ea10902d4893882dc7a2dfd
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Joyent, Inc.
25 # Copyright (c) 2012 by Delphix. All rights reserved.
26 # Copyright (c) 2013 DEY Storage Systems, Inc. All rights reserved.
27 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
28 # Copyright 2016 Toomas Soome <tsoome@me.com>
29 # Copyright 2018 Nexenta Systems, Inc.
30 # Copyright 2018 Gary Mills
33 include ../Makefile.master
36 # Note that the command 'perl' is first in the list, violating
37 # alphabetical order. This is because it is very long-running and
38 # should be given the most wall-clock time for a parallel build.
40 # Commands in the FIRST_SUBDIRS list are built before starting the build
41 # of other commands. Currently this includes only 'isaexec' and
42 # 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or
43 # $(ROOT)/usr/lib/platexec must exist when some other commands are built
44 # because their 'make install' creates a hard link to one of them.
47 FIRST_SUBDIRS= \
48 isaexec \
49 platexec
51 COMMON_SUBDIRS= \
52 perl \
53 Adm \
54 abi \
55 acct \
56 acctadm \
57 ahciem \
58 ast \
59 audio \
60 auths \
61 autopush \
62 backup \
63 bart \
64 basename \
65 bc \
66 boot \
67 busstat \
68 cal \
69 cdrw \
70 cfgadm \
71 chgrp \
72 chmod \
73 chown \
74 chroot \
75 cmd-crypto \
76 cmd-inet \
77 col \
78 compress \
79 consadm \
80 coreadm \
81 cpio \
82 cpc \
83 cron \
84 crypt \
85 csh \
86 csplit \
87 ctrun \
88 ctstat \
89 ctwatch \
90 cxgbetool \
91 datadm \
92 date \
93 dc \
94 dd \
95 devfsadm \
96 syseventd \
97 devctl \
98 devinfo \
99 devmgmt \
100 devprop \
101 dfs.cmds \
102 diff \
103 diff3 \
104 dircmp \
105 dirname \
106 diskinfo \
107 diskmgtd \
108 dispadmin \
109 dladm \
110 dlstat \
111 dlutil \
112 dmesg \
113 dodatadm \
114 dtrace \
115 du \
116 dumpadm \
117 dumpcs \
118 ed \
119 eeprom \
120 eject \
121 emul64ioctl \
122 enhance \
123 expand \
124 expr \
125 exstr \
126 factor \
127 fcinfo \
128 fcoesvc \
129 fdetach \
130 fdformat \
131 fdisk \
132 ficl \
133 filesync \
134 find \
135 flowadm \
136 flowstat \
137 fm \
138 fmt \
139 fmthard \
140 fmtmsg \
141 fold \
142 format \
143 fs.d \
144 fstyp \
145 fuser \
146 fwflash \
147 gcore \
148 gencat \
149 geniconvtbl \
150 genmsg \
151 getconf \
152 getdevpolicy \
153 getent \
154 getfacl \
155 getmajor \
156 getopt \
157 gettext \
158 gettxt \
159 groups \
160 growfs \
161 grpck \
162 gss \
163 hal \
164 halt \
165 head \
166 hostid \
167 hostname \
168 hotplug \
169 hotplugd \
170 ibd_upgrade \
171 iconv \
172 idmap \
173 init \
174 initpkg \
175 intrd \
176 intrstat \
177 ipcrm \
178 ipcs \
179 ipdadm \
180 ipf \
181 isainfo \
182 isalist \
183 itutools \
184 iscsiadm \
185 iscsid \
186 iscsitsvc \
187 isns \
188 itadm \
189 kbd \
190 keyserv \
191 killall \
192 krb5 \
193 ksh \
194 kvmstat \
195 last \
196 lastcomm \
197 latencytop \
198 ldap \
199 ldapcachemgr \
200 lgrpinfo \
201 line \
202 link \
203 dlmgmtd \
204 listen \
205 loadkeys \
206 locale \
207 lockstat \
208 lofiadm \
209 logadm \
210 logger \
211 login \
212 logins \
213 look \
214 ls \
215 luxadm \
216 mail \
217 mailx \
218 make \
219 mdb \
220 mesg \
221 mkdir \
222 mkfifo \
223 mkfile \
224 mkmsgs \
225 mknod \
226 mkpwdict \
227 mktemp \
228 modload \
229 mpathadm \
230 msgfmt \
231 msgid \
232 mt \
233 mv \
234 mvdir \
235 ndmpadm \
236 ndmpd \
237 ndmpstat \
238 netadm \
239 netfiles \
240 newform \
241 newgrp \
242 news \
243 newtask \
244 nice \
245 nl \
246 nlsadmin \
247 nohup \
248 nscd \
249 oamuser \
250 od \
251 pack \
252 pagesize \
253 passmgmt \
254 passwd \
255 pathchk \
256 pbind \
257 pcidr \
258 pcitool \
259 pfexec \
260 pfexecd \
261 pginfo \
262 pgstat \
263 pgrep \
264 plimit \
265 policykit \
266 pools \
267 power \
268 powertop \
269 ppgsz \
270 pg \
271 plockstat \
272 pr \
273 prctl \
274 printenv \
275 printf \
276 priocntl \
277 profiles \
278 projadd \
279 projects \
280 prstat \
281 prtconf \
282 prtdiag \
283 prtvtoc \
284 ps \
285 psradm \
286 psrinfo \
287 psrset \
288 ptools \
289 pwck \
290 raidctl \
291 ramdiskadm \
292 rcap \
293 rcm_daemon \
294 rctladm \
295 refer \
296 regcmp \
297 renice \
298 rm \
299 rmdir \
300 rmformat \
301 rmmount \
302 rmvolmgr \
303 roles \
304 rpcbind \
305 rpcgen \
306 rpcinfo \
307 rpcsvc \
308 runat \
309 sa \
310 saf \
311 sasinfo \
312 savecore \
313 sbdadm \
314 script \
315 scsi \
316 sdiff \
317 sdpadm \
318 setfacl \
319 setmnt \
320 setpgrp \
321 sgs \
322 smbios \
323 smbsrv \
324 smserverd \
325 sort \
326 spell \
327 split \
328 sqlite \
329 srchtxt \
330 srptadm \
331 srptsvc \
332 stat \
333 stmfadm \
334 stmfsvc \
335 stmsboot \
336 streams \
337 strings \
338 su \
339 sulogin \
340 sunpc \
341 svc \
342 swap \
343 sync \
344 sysdef \
345 syseventadm \
346 syslogd \
347 tail \
348 tar \
349 tcpd \
350 th_tools \
351 tip \
352 terminfo \
353 touch \
354 tr \
355 trapstat \
356 truss \
357 tty \
358 ttymon \
359 tzreload \
360 units \
361 unlink \
362 unpack \
363 userattr \
364 users \
365 utmpd \
366 uuidgen \
367 volcheck \
368 volrmmount \
369 vrrpadm \
370 vscan \
371 vt \
373 wall \
374 which \
375 who \
376 whodo \
377 wracct \
378 write \
379 xargs \
380 xstr \
381 ypcmd \
382 yppasswd \
383 zdb \
384 zdump \
385 zfs \
386 zhack \
387 zinject \
388 zlogin \
389 zoneadm \
390 zoneadmd \
391 zonecfg \
392 zonename \
393 zpool \
394 zlook \
395 zonestat \
396 zstreamdump \
397 ztest
399 i386_SUBDIRS= \
400 acpi \
401 acpihpd \
402 biosdev \
403 diskscan \
404 nvmeadm \
405 rtc \
406 ucodeadm \
407 xhci
410 # Commands that are messaged.
412 MSGSUBDIRS= \
413 abi \
414 acctadm \
415 audio \
416 auths \
417 autopush \
418 backup \
419 bart \
420 basename \
421 busstat \
422 cal \
423 cdrw \
424 cfgadm \
425 chgrp \
426 chmod \
427 chown \
428 cmd-crypto \
429 cmd-inet \
430 col \
431 compress \
432 consadm \
433 coreadm \
434 cpio \
435 cpc \
436 cron \
437 csh \
438 csplit \
439 ctrun \
440 ctstat \
441 ctwatch \
442 datadm \
443 date \
444 dc \
445 dd \
446 devfsadm \
447 dfs.cmds \
448 diff \
449 dladm \
450 dlstat \
451 du \
452 dumpcs \
453 ed \
454 eject \
455 expand \
456 expr \
457 fcinfo \
458 filesync \
459 find \
460 flowadm \
461 flowstat \
462 fm \
463 fold \
464 fs.d \
465 fwflash \
466 geniconvtbl \
467 genmsg \
468 getconf \
469 getent \
470 gettext \
471 gettxt \
472 grpck \
473 gss \
474 halt \
475 head \
476 hostname \
477 hotplug \
478 iconv \
479 idmap \
480 isaexec \
481 iscsiadm \
482 iscsid \
483 isns \
484 itadm \
485 kbd \
486 krb5 \
487 ksh \
488 last \
489 ldap \
490 ldapcachemgr \
491 lgrpinfo \
492 locale \
493 lofiadm \
494 logadm \
495 logger \
496 logins \
497 ls \
498 luxadm \
499 mailx \
500 make \
501 mesg \
502 mkdir \
503 mkpwdict \
504 mktemp \
505 mpathadm \
506 msgfmt \
507 mv \
508 ndmpadm \
509 ndmpstat \
510 newgrp \
511 newtask \
512 nice \
513 nohup \
514 pack \
515 passwd \
516 passmgmt \
517 pathchk \
518 pfexec \
519 pg \
520 pgrep \
521 pools \
522 power \
523 pr \
524 profiles \
525 projadd \
526 projects \
527 prstat \
528 prtdiag \
529 ps \
530 psrinfo \
531 ptools \
532 raidctl \
533 ramdiskadm \
534 rcap \
535 rcm_daemon \
536 refer \
537 regcmp \
538 renice \
539 roles \
540 rm \
541 rmdir \
542 rmformat \
543 rmmount \
544 rmvolmgr \
545 sasinfo \
546 sbdadm \
547 script \
548 scsi \
549 sdiff \
550 sdpadm \
551 sgs \
552 smbsrv \
553 sort \
554 split \
555 srptadm \
556 stat \
557 stmfadm \
558 stmsboot \
559 strings \
560 su \
561 svc \
562 swap \
563 syseventadm \
564 syseventd \
565 tar \
566 touch \
567 tty \
568 ttymon \
569 tzreload \
570 units \
571 unlink \
572 unpack \
573 userattr \
574 volcheck \
575 volrmmount \
576 vrrpadm \
577 vscan \
579 who \
580 whodo \
581 wracct \
582 write \
583 xargs \
584 yppasswd \
585 zdump \
586 zfs \
587 zlogin \
588 zoneadm \
589 zoneadmd \
590 zonecfg \
591 zonename \
592 zpool \
593 zonestat
595 i386_MSGSUBDIRS= \
596 ucodeadm
599 # commands that use dcgettext for localized time, LC_TIME
601 DCSUBDIRS= \
602 cal \
603 cfgadm \
604 diff \
605 ls \
606 pr \
607 ps \
608 tar \
610 who \
611 whodo \
612 write
615 # commands not owned by the systems group
617 BWOSDIRS=
620 all := TARGET = all
621 install := TARGET = install
622 clean := TARGET = clean
623 clobber := TARGET = clobber
624 _msg := TARGET = _msg
625 _dc := TARGET = _dc
627 .KEEP_STATE:
629 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
631 .PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS)
633 all install clean clobber: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS)
636 # Manifests cannot be checked in parallel, because we are using
637 # the global repository that is in $(SRC)/cmd/svc/seed/global.db.
638 # For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
639 # we spawn off a sub-make to perform the non-parallel 'make check'
641 check:
642 $(MAKE) -f Makefile.check check
645 # The .WAIT directive works around an apparent bug in parallel make.
646 # Evidently make was getting the target _msg vs. _dc confused under
647 # some level of parallelization, causing some of the _dc objects
648 # not to be built.
650 _msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
652 _dc: $(DCSUBDIRS)
655 # Dependencies
657 fs.d: fstyp
658 ksh: isaexec
659 mdb: terminfo
660 fmt: mailx
662 $(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS): FRC
663 @if [ -f $@/Makefile ]; then \
664 cd $@; pwd; $(MAKE) $(TARGET); \
665 else \
666 true; \
668 FRC: