Commit 7b8967f
committed
rust: Reorder targets in makefile to make second expansion clearly.
.SECONDEXPANSION directive instructs targets AFTER it to expand twice.
According to GNU make manual, the special target .SECONDEXPANSION must
be defined before the first prerequisite list that makes use of this
feature.
For Rust's makefile, only sources from rust lib requires second
expansion. Move those targets to the end of makefile and tag only them
as .SECONDEXPANSION to prevent from error-prone bugs.
Signed-off-by: d0u9 <d0u9.su@outlook.com>1 parent 7884043 commit 7b8967f
1 file changed
+11
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | 154 | | |
160 | 155 | | |
161 | 156 | | |
162 | 157 | | |
163 | 158 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 159 | | |
170 | 160 | | |
171 | 161 | | |
| |||
178 | 168 | | |
179 | 169 | | |
180 | 170 | | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
0 commit comments