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/tools/Makefile
+++ new/usr/src/tools/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
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
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 #
23 23 # Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
24 +# Copyright 2014 Garrett D'Amore <garrett@damore.org>
24 25 #
25 26
26 27 include ../Makefile.master
27 28
28 29 # Bootstrap problem --
29 30 # 'cw' must be built before anything else can be built.
30 31
31 32 BOOT_SUBDIRS= \
32 33 cw
33 34
34 35 COMMON_SUBDIRS= \
35 36 codereview \
36 37 codesign \
37 38 cscope-fast \
38 39 ctf \
39 40 depcheck \
40 41 env \
41 42 findunref \
42 43 ndrgen \
43 44 onbld \
44 45 pmodes \
45 46 gk \
↓ open down ↓ |
12 lines elided |
↑ open up ↑ |
46 47 install.bin \
47 48 lintdump \
48 49 protocmp \
49 50 protolist \
50 51 scripts
51 52
52 53 #
53 54 # special versions of commands for use only in build
54 55 #
55 56 UNSHIPPED_SUBDIRS = \
56 - elfsign
57 + elfsign \
58 + mandoc
57 59
58 60 sparc_SUBDIRS= \
59 61 chk4ubin \
60 62 stabs \
61 63 tokenize
62 64
63 65 i386_SUBDIRS= \
64 66 aw \
65 67 elfextract \
66 68 mbh_patch
67 69
68 70 LINTSUBDIRS= \
69 71 codereview \
70 72 ctf \
71 73 cw \
72 74 findunref \
73 75 lintdump \
74 76 ndrgen \
75 77 protocmp \
76 78 protolist
77 79
78 80 SUBDIRS= \
79 81 $($(MACH)_SUBDIRS) \
80 82 $(COMMON_SUBDIRS) \
81 83 $(UNSHIPPED_SUBDIRS)
82 84
83 85 include Makefile.tools
84 86
85 87 ROOTDIRS= \
86 88 $(ROOTOPT) \
87 89 $(ROOTONBLD) \
88 90 $(ROOTONBLD)/bin \
89 91 $(ROOTONBLD)/bin/$(MACH) \
90 92 $(ROOTONBLD)/lib \
91 93 $(ROOTONBLD)/lib/$(MACH) \
92 94 $(ROOTONBLD)/lib/perl \
93 95 $(ROOTONBLD)/lib/python2.6 \
94 96 $(ROOTONBLD)/lib/python2.6/onbld \
95 97 $(ROOTONBLD)/lib/python2.6/onbld/Checks \
96 98 $(ROOTONBLD)/lib/python2.6/onbld/hgext \
97 99 $(ROOTONBLD)/lib/python2.6/onbld/Scm \
98 100 $(ROOTONBLD)/env \
99 101 $(ROOTONBLD)/etc \
100 102 $(ROOTONBLD)/etc/exception_lists \
101 103 $(ROOTONBLD)/gk \
102 104 $(ROOTONBLD)/man \
103 105 $(ROOTONBLD)/man/man1
104 106
105 107 all := TARGET= install
106 108 install := TARGET= install
107 109 clean := TARGET= clean
108 110 clobber := TARGET= clobber
109 111 lint := TARGET= lint
110 112 _msg := TARGET= _msg
111 113
112 114 .KEEP_STATE:
113 115
114 116 #
115 117 # Only create directories in the tools proto area when doing an actual
116 118 # build, not a clean or clobber.
117 119 #
118 120 DOROOTDIRS= $(ROOTDIRS)
119 121 clobber:= DOROOTDIRS=
120 122 clean:= DOROOTDIRS=
121 123
122 124 all install: $(SUBDIRS)
123 125
124 126 clean: $(SUBDIRS)
125 127
126 128 clobber: $(SUBDIRS)
127 129 $(RM) -rf $(TOOLS_PROTO)
128 130
129 131 lint: $(LINTSUBDIRS)
130 132
131 133 _msg: $(MSGSUBDIRS)
132 134
133 135 .PARALLEL: $(SUBDIRS) $(CLOSED_SUBDIRS)
134 136
135 137 $(SUBDIRS) $(CLOSED_SUBDIRS): $(BOOT_SUBDIRS)
136 138
137 139 $(BOOT_SUBDIRS) $(SUBDIRS): $$(DOROOTDIRS) $(ROOTONBLDLIBPY) FRC
138 140 @cd $@; pwd; $(MAKE) $(TARGET)
139 141
140 142 $(ROOTDIRS):
141 143 $(INS.dir)
142 144
143 145 $(ROOTONBLDLIBPY): $(ROOTDIRS)
144 146 $(RM) -r $@; $(SYMLINK) python2.6 $@
145 147
146 148 FRC:
↓ open down ↓ |
80 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX