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