mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
docs/Formula-Cookbook: preach what we practise
This commit is contained in:
parent
817b72d5ba
commit
6a38b0189c
@ -396,12 +396,7 @@ system "make", "target", "VAR2=value1", "VAR2=value2", "VAR3=values can have spa
|
||||
```
|
||||
|
||||
```ruby
|
||||
args = %W[
|
||||
CC=#{ENV.cc}
|
||||
PREFIX=#{prefix}
|
||||
]
|
||||
|
||||
system "make", *args
|
||||
system "make", "CC=#{ENV.cc}", "PREFIX=#{prefix}"
|
||||
```
|
||||
|
||||
Note that values *can* contain unescaped spaces if you use the multiple-argument form of `system`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user