Print this page
5025 import and use mandoc
Reviewed by: Hans Rosenfeld <hans.rosenfeld@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Approved by: TBD
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/Makefile
+++ new/usr/src/cmd/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
23 23 # Copyright 2010 Nexenta Systems, Inc. All rights reserved.
24 24 # Copyright (c) 2012 Joyent, Inc. All rights reserved.
25 25 # Copyright (c) 2012 by Delphix. All rights reserved.
26 26 # Copyright (c) 2013 DEY Storage Systems, Inc. All rights reserved.
27 +# Copyright 2014 Garrett D'Amore <garrett@damore.org>
27 28
28 29 include ../Makefile.master
29 30
30 31 #
31 -# Note that the commands 'agents', 'lp', 'perl', and 'man' are first in
32 +# Note that the commands 'lp', and 'perl' are first in
32 33 # the list, violating alphabetical order. This is because they are very
33 34 # long-running and should be given the most wall-clock time for a
34 35 # parallel build.
35 36 #
36 37 # Commands in the FIRST_SUBDIRS list are built before starting the build
37 38 # of other commands. Currently this includes only 'isaexec' and
38 39 # 'platexec'. This is necessary because $(ROOT)/usr/lib/isaexec or
39 40 # $(ROOT)/usr/lib/platexec must exist when some other commands are built
40 41 # because their 'make install' creates a hard link to one of them.
41 42 #
42 43 # Commands are listed one per line so that TeamWare can auto-merge most
43 44 # changes.
44 45 #
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
45 46
46 47 FIRST_SUBDIRS= \
47 48 isaexec \
48 49 platexec
49 50
50 51 COMMON_SUBDIRS= \
51 52 allocate \
52 53 availdevs \
53 54 lp \
54 55 perl \
55 - man \
56 56 Adm \
57 57 abi \
58 58 adbgen \
59 59 acct \
60 60 acctadm \
61 61 arch \
62 62 asa \
63 63 ast \
64 64 audio \
65 65 auths \
66 66 autopush \
67 67 avs \
68 68 awk \
69 69 awk_xpg4 \
70 70 backup \
71 71 banner \
72 72 bart \
73 73 basename \
74 74 bc \
75 75 bdiff \
76 76 beadm \
77 77 bfs \
78 78 bnu \
79 79 boot \
80 80 busstat \
81 81 cal \
82 82 calendar \
83 83 captoinfo \
84 84 cat \
85 85 cdrw \
86 86 cfgadm \
87 87 checkeq \
88 88 checknr \
89 89 chgrp \
90 90 chmod \
91 91 chown \
92 92 chroot \
93 93 clear \
94 94 clinfo \
95 95 cmd-crypto \
96 96 cmd-inet \
97 97 col \
98 98 compress \
99 99 consadm \
100 100 coreadm \
101 101 cpio \
102 102 cpc \
103 103 cron \
104 104 crypt \
105 105 csh \
106 106 csplit \
107 107 ctrun \
108 108 ctstat \
109 109 ctwatch \
110 110 datadm \
111 111 date \
112 112 dc \
113 113 dd \
114 114 deroff \
115 115 devfsadm \
116 116 syseventd \
117 117 devctl \
118 118 devinfo \
119 119 devmgmt \
120 120 devprop \
121 121 dfs.cmds \
122 122 diff \
123 123 diff3 \
124 124 diffmk \
125 125 dircmp \
126 126 dirname \
127 127 dis \
128 128 diskmgtd \
129 129 dispadmin \
130 130 dladm \
131 131 dlstat \
132 132 dmesg \
133 133 dodatadm \
134 134 dtrace \
135 135 du \
136 136 dumpadm \
137 137 dumpcs \
138 138 echo \
139 139 ed \
140 140 eeprom \
141 141 egrep \
142 142 eject \
143 143 emul64ioctl \
144 144 enhance \
145 145 env \
146 146 eqn \
147 147 expand \
148 148 expr \
149 149 exstr \
150 150 factor \
151 151 false \
152 152 fcinfo \
153 153 fcoesvc \
154 154 fdetach \
155 155 fdformat \
156 156 fdisk \
157 157 filesync \
158 158 fgrep \
159 159 file \
160 160 find \
161 161 flowadm \
162 162 flowstat \
163 163 fm \
164 164 fmt \
165 165 fmthard \
166 166 fmtmsg \
167 167 fold \
168 168 format \
169 169 fs.d \
170 170 fstyp \
171 171 fuser \
172 172 fwflash \
173 173 gcore \
174 174 gencat \
175 175 geniconvtbl \
176 176 genmsg \
177 177 getconf \
178 178 getdevpolicy \
179 179 getent \
180 180 getfacl \
181 181 getmajor \
182 182 getopt \
183 183 gettext \
184 184 gettxt \
185 185 grep \
186 186 grep_xpg4 \
187 187 groups \
188 188 grpck \
189 189 gss \
190 190 hal \
191 191 halt \
192 192 head \
193 193 hostid \
194 194 hostname \
195 195 hotplug \
196 196 hotplugd \
197 197 hwdata \
198 198 ibd_upgrade \
199 199 id \
200 200 idmap \
201 201 infocmp \
202 202 init \
203 203 initpkg \
204 204 install.d \
205 205 intrd \
206 206 intrstat \
207 207 ipcrm \
208 208 ipcs \
209 209 ipdadm \
210 210 ipf \
211 211 isainfo \
212 212 isalist \
213 213 itutools \
214 214 iscsiadm \
215 215 iscsid \
216 216 iscsitsvc \
217 217 isns \
218 218 itadm \
219 219 java \
220 220 kbd \
221 221 keyserv \
222 222 killall \
223 223 krb5 \
224 224 ksh \
225 225 kvmstat \
226 226 last \
227 227 lastcomm \
228 228 latencytop \
229 229 ldap \
230 230 ldapcachemgr \
231 231 lgrpinfo \
232 232 line \
233 233 link \
234 234 dlmgmtd \
235 235 listen \
236 236 loadkeys \
237 237 locale \
238 238 localedef \
239 239 lockstat \
240 240 locator \
241 241 lofiadm \
242 242 logadm \
243 243 logger \
244 244 login \
↓ open down ↓ |
179 lines elided |
↑ open up ↑ |
245 245 logins \
246 246 look \
247 247 ls \
248 248 luxadm \
249 249 lvm \
250 250 mach \
251 251 machid \
252 252 mail \
253 253 mailx \
254 254 makekey \
255 + man \
256 + mandoc \
255 257 mdb \
256 258 mesg \
257 259 mkdir \
258 260 mkfifo \
259 261 mkfile \
260 262 mkmsgs \
261 263 mknod \
262 264 mkpwdict \
263 265 mktemp \
264 266 modload \
265 267 more \
266 268 mpathadm \
267 269 msgfmt \
268 270 msgid \
269 271 mt \
270 272 mv \
271 273 mvdir \
272 274 ndmpadm \
273 275 ndmpd \
274 276 ndmpstat \
275 277 netadm \
276 278 netfiles \
277 279 newform \
278 280 newgrp \
279 281 news \
280 282 newtask \
281 283 nice \
282 284 nl \
283 285 nlsadmin \
284 286 nohup \
285 287 nsadmin \
286 288 nscd \
287 289 oamuser \
288 290 oawk \
289 291 od \
290 292 pack \
291 293 pagesize \
292 294 passmgmt \
293 295 passwd \
294 296 pathchk \
295 297 pbind \
296 298 pcidr \
297 299 pcitool \
298 300 pfexec \
299 301 pfexecd \
300 302 pginfo \
301 303 pgstat \
302 304 pgrep \
303 305 picl \
304 306 plimit \
305 307 policykit \
306 308 pools \
307 309 power \
308 310 powertop \
309 311 ppgsz \
310 312 pg \
311 313 plockstat \
312 314 pr \
313 315 prctl \
314 316 print \
315 317 printf \
316 318 priocntl \
317 319 profiles \
318 320 projadd \
319 321 projects \
320 322 prstat \
321 323 prtconf \
322 324 prtdiag \
323 325 prtvtoc \
324 326 ps \
325 327 psradm \
326 328 psrinfo \
327 329 psrset \
328 330 ptools \
329 331 pwck \
330 332 pwconv \
331 333 pwd \
332 334 pyzfs \
333 335 raidctl \
334 336 ramdiskadm \
335 337 rcap \
336 338 rcm_daemon \
337 339 rctladm \
338 340 refer \
339 341 regcmp \
340 342 renice \
341 343 rexd \
342 344 rm \
343 345 rmdir \
344 346 rmformat \
345 347 rmmount \
346 348 rmt \
347 349 rmvolmgr \
348 350 roles \
349 351 rpcbind \
350 352 rpcgen \
351 353 rpcinfo \
352 354 rpcsvc \
353 355 runat \
354 356 sa \
355 357 saf \
356 358 sasinfo \
357 359 savecore \
358 360 sbdadm \
359 361 script \
360 362 scsi \
361 363 sdiff \
362 364 sdpadm \
363 365 sed \
364 366 sendmail \
365 367 setfacl \
366 368 setmnt \
367 369 setpgrp \
368 370 setuname \
369 371 sgs \
370 372 sh \
371 373 shcomp \
372 374 smbios \
373 375 smbsrv \
374 376 smserverd \
375 377 soelim \
376 378 sort \
377 379 spell \
378 380 split \
379 381 sqlite \
380 382 srchtxt \
381 383 srptadm \
382 384 srptsvc \
383 385 ssh \
384 386 stat \
385 387 stmfadm \
386 388 stmfproxy \
387 389 stmfsvc \
388 390 stmsboot \
389 391 streams \
390 392 strings \
391 393 su \
392 394 sulogin \
393 395 sunpc \
394 396 svc \
395 397 svr4pkg \
396 398 swap \
397 399 sync \
398 400 sysdef \
399 401 syseventadm \
400 402 syslogd \
401 403 tabs \
402 404 tail \
403 405 tar \
404 406 tbl \
405 407 tcopy \
406 408 tcpd \
407 409 terminfo \
408 410 th_tools \
409 411 tic \
410 412 time \
411 413 tip \
412 414 tnf \
413 415 touch \
414 416 tput \
415 417 tr \
416 418 trapstat \
417 419 troff \
418 420 true \
419 421 truss \
420 422 tsol \
421 423 tty \
422 424 ttymon \
423 425 tzreload \
424 426 uadmin \
425 427 ul \
426 428 uname \
427 429 units \
428 430 unlink \
429 431 unpack \
430 432 userattr \
431 433 users \
432 434 utmp_update \
433 435 utmpd \
434 436 valtools \
435 437 vgrind \
436 438 vi \
437 439 volcheck \
438 440 volrmmount \
439 441 vrrpadm \
440 442 vscan \
441 443 vt \
442 444 w \
443 445 wall \
444 446 which \
445 447 who \
446 448 whodo \
447 449 wracct \
448 450 write \
449 451 wusbadm \
450 452 xargs \
451 453 xstr \
452 454 yes \
453 455 ypcmd \
454 456 yppasswd \
455 457 zdb \
456 458 zdump \
457 459 zfs \
458 460 zhack \
459 461 zic \
460 462 zinject \
461 463 zlogin \
462 464 zoneadm \
463 465 zoneadmd \
464 466 zonecfg \
465 467 zonename \
466 468 zpool \
467 469 zlook \
468 470 zonestat \
469 471 zstreamdump \
470 472 ztest
471 473
472 474 i386_SUBDIRS= \
473 475 acpihpd \
474 476 addbadsec \
475 477 biosdev \
476 478 diskscan \
477 479 lms \
478 480 ntfsprogs \
479 481 parted \
480 482 rtc \
481 483 ucodeadm \
482 484 xvm
483 485
484 486 sparc_SUBDIRS= \
485 487 cvcd \
486 488 dcs \
487 489 device_remap \
488 490 drd \
489 491 fruadm \
490 492 ldmad \
↓ open down ↓ |
226 lines elided |
↑ open up ↑ |
491 493 oplhpd \
492 494 prtdscp \
493 495 prtfru \
494 496 scadm \
495 497 sckmd \
496 498 sf880drd \
497 499 virtinfo \
498 500 vntsd
499 501
500 502 #
501 -# Commands that are messaged. Note that 'lp' and 'man' come first
502 -# (see previous comment about 'lp' and 'man').
503 +# Commands that are messaged. Note that 'lp' comes first
504 +# (see previous comment about 'lp'.)
503 505 #
504 506 MSGSUBDIRS= \
505 507 lp \
506 - man \
507 508 abi \
508 509 acctadm \
509 510 allocate \
510 511 asa \
511 512 audio \
512 513 audit \
513 514 auditconfig \
514 515 auditd \
515 516 auditrecord \
516 517 auditset \
517 518 auths \
518 519 autopush \
519 520 avs \
520 521 awk \
521 522 awk_xpg4 \
522 523 backup \
523 524 banner \
524 525 bart \
525 526 basename \
526 527 beadm \
527 528 bnu \
528 529 busstat \
529 530 cal \
530 531 cat \
531 532 cdrw \
532 533 cfgadm \
533 534 checkeq \
534 535 checknr \
535 536 chgrp \
536 537 chmod \
537 538 chown \
538 539 cmd-crypto \
539 540 cmd-inet \
540 541 col \
541 542 compress \
542 543 consadm \
543 544 coreadm \
544 545 cpio \
545 546 cpc \
546 547 cron \
547 548 csh \
548 549 csplit \
549 550 ctrun \
550 551 ctstat \
551 552 ctwatch \
552 553 datadm \
553 554 date \
554 555 dc \
555 556 dcs \
556 557 dd \
557 558 deroff \
558 559 devfsadm \
559 560 dfs.cmds \
560 561 diff \
561 562 diffmk \
562 563 dladm \
563 564 dlstat \
564 565 du \
565 566 dumpcs \
566 567 ed \
567 568 eject \
568 569 env \
569 570 eqn \
570 571 expand \
571 572 expr \
572 573 fcinfo \
573 574 fgrep \
574 575 file \
575 576 filesync \
576 577 find \
577 578 flowadm \
578 579 flowstat \
579 580 fm \
580 581 fold \
581 582 fs.d \
582 583 fwflash \
583 584 geniconvtbl \
584 585 genmsg \
585 586 getconf \
586 587 getent \
587 588 gettext \
588 589 gettxt \
589 590 grep \
590 591 grep_xpg4 \
591 592 grpck \
592 593 gss \
593 594 halt \
594 595 head \
595 596 hostname \
596 597 hotplug \
597 598 id \
598 599 idmap \
599 600 isaexec \
600 601 iscsiadm \
601 602 iscsid \
602 603 isns \
603 604 itadm \
604 605 kbd \
605 606 krb5 \
606 607 ksh \
607 608 last \
608 609 ldap \
609 610 ldapcachemgr \
↓ open down ↓ |
93 lines elided |
↑ open up ↑ |
610 611 lgrpinfo \
611 612 locale \
612 613 lofiadm \
613 614 logadm \
614 615 logger \
615 616 logins \
616 617 ls \
617 618 luxadm \
618 619 lvm \
619 620 mailx \
621 + man \
620 622 mesg \
621 623 mkdir \
622 624 mkpwdict \
623 625 mktemp \
624 626 more \
625 627 mpathadm \
626 628 msgfmt \
627 629 mv \
628 630 ndmpadm \
629 631 ndmpstat \
630 632 newgrp \
631 633 newtask \
632 634 nice \
633 635 nohup \
634 636 oawk \
635 637 pack \
636 638 passwd \
637 639 passmgmt \
638 640 pathchk \
639 641 pfexec \
640 642 pg \
641 643 pgrep \
642 644 picl \
643 645 pools \
644 646 power \
645 647 pr \
646 648 praudit \
647 649 print \
648 650 profiles \
649 651 projadd \
650 652 projects \
651 653 prstat \
652 654 prtdiag \
653 655 ps \
654 656 psrinfo \
655 657 ptools \
656 658 pwconv \
657 659 pwd \
658 660 pyzfs \
659 661 raidctl \
660 662 ramdiskadm \
661 663 rcap \
662 664 rcm_daemon \
663 665 refer \
664 666 regcmp \
665 667 renice \
666 668 roles \
667 669 rm \
668 670 rmdir \
669 671 rmformat \
670 672 rmmount \
671 673 rmvolmgr \
672 674 sasinfo \
673 675 sbdadm \
674 676 scadm \
675 677 script \
676 678 scsi \
677 679 sdiff \
678 680 sdpadm \
679 681 sgs \
680 682 sh \
681 683 shcomp \
682 684 smbsrv \
683 685 sort \
684 686 split \
685 687 srptadm \
686 688 ssh \
687 689 stat \
688 690 stmfadm \
689 691 stmsboot \
690 692 strings \
691 693 su \
692 694 svc \
693 695 svr4pkg \
694 696 swap \
695 697 syseventadm \
696 698 syseventd \
697 699 tabs \
698 700 tar \
699 701 tbl \
700 702 time \
701 703 tnf \
702 704 touch \
703 705 tput \
704 706 troff \
705 707 tsol \
706 708 tty \
707 709 ttymon \
708 710 tzreload \
709 711 ul \
710 712 uname \
711 713 units \
712 714 unlink \
713 715 unpack \
714 716 userattr \
715 717 valtools \
716 718 vgrind \
717 719 vi \
718 720 volcheck \
719 721 volrmmount \
720 722 vrrpadm \
721 723 vscan \
722 724 w \
723 725 who \
724 726 whodo \
725 727 wracct \
726 728 write \
727 729 wusbadm \
728 730 xargs \
729 731 yppasswd \
730 732 zdump \
731 733 zfs \
732 734 zic \
733 735 zlogin \
734 736 zoneadm \
735 737 zoneadmd \
736 738 zonecfg \
737 739 zonename \
738 740 zpool \
739 741 zonestat
740 742
741 743 sparc_MSGSUBDIRS= \
742 744 fruadm \
743 745 prtdscp \
744 746 prtfru \
745 747 virtinfo \
746 748 vntsd
747 749
748 750 i386_MSGSUBDIRS= \
749 751 ucodeadm
750 752
751 753 #
752 754 # commands that use dcgettext for localized time, LC_TIME
753 755 #
754 756 DCSUBDIRS= \
755 757 cal \
756 758 cfgadm \
757 759 diff \
758 760 ls \
759 761 pr \
760 762 ps \
761 763 tar \
762 764 w \
763 765 who \
764 766 whodo \
765 767 write
766 768
767 769 #
768 770 # commands that belong only to audit.
769 771 #
770 772 AUDITSUBDIRS= \
771 773 amt \
772 774 audit \
773 775 audit_warn \
774 776 auditconfig \
775 777 auditd \
776 778 auditrecord \
777 779 auditreduce \
778 780 auditset \
779 781 auditstat \
780 782 praudit
781 783
782 784 #
783 785 # commands not owned by the systems group
784 786 #
785 787 BWOSDIRS=
786 788
787 789
788 790 all := TARGET = all
789 791 install := TARGET = install
790 792 clean := TARGET = clean
791 793 clobber := TARGET = clobber
792 794 lint := TARGET = lint
793 795 _msg := TARGET = _msg
794 796 _dc := TARGET = _dc
795 797
796 798 .KEEP_STATE:
797 799
798 800 SUBDIRS = $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
799 801
800 802 .PARALLEL: $(BWOSDIRS) $(SUBDIRS) $(MSGSUBDIRS) $(AUDITSUBDIRS)
801 803
802 804 all install clean clobber lint: $(FIRST_SUBDIRS) .WAIT $(SUBDIRS) \
803 805 $(AUDITSUBDIRS)
804 806
805 807 #
806 808 # Manifests cannot be checked in parallel, because we are using
807 809 # the global repository that is in $(SRC)/cmd/svc/seed/global.db.
808 810 # For this reason, to avoid .PARALLEL and .NO_PARALLEL conflicts,
809 811 # we spawn off a sub-make to perform the non-parallel 'make check'
810 812 #
811 813 check:
812 814 $(MAKE) -f Makefile.check check
813 815
814 816 #
815 817 # The .WAIT directive works around an apparent bug in parallel make.
816 818 # Evidently make was getting the target _msg vs. _dc confused under
817 819 # some level of parallelization, causing some of the _dc objects
818 820 # not to be built.
819 821 #
820 822 _msg: $(MSGSUBDIRS) $($(MACH)_MSGSUBDIRS) .WAIT _dc
821 823
822 824 _dc: $(DCSUBDIRS)
823 825
824 826 #
825 827 # Dependencies
826 828 #
827 829 fs.d: fstyp
828 830 ksh: shcomp isaexec
829 831 mdb: terminfo
830 832 print: lp
831 833
832 834 $(FIRST_SUBDIRS) $(BWOSDIRS) $(SUBDIRS) $(AUDITSUBDIRS): FRC
833 835 @if [ -f $@/Makefile ]; then \
834 836 cd $@; pwd; $(MAKE) $(TARGET); \
835 837 else \
836 838 true; \
837 839 fi
838 840
839 841 FRC:
↓ open down ↓ |
210 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX