Formula Cookbook: fix make install separation.
This commit is contained in:
parent
ca2c201fb3
commit
62c270cbc6
@ -108,7 +108,7 @@ class Foo < Formula
|
|||||||
def install
|
def install
|
||||||
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
|
||||||
# system "cmake", ".", *std_cmake_args
|
# system "cmake", ".", *std_cmake_args
|
||||||
system "make install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
@ -384,7 +384,7 @@ In particular, when a test needs to be performed before installation use `onoe`
|
|||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
if some_test?
|
if some_test?
|
||||||
system "make install"
|
system "make", "install"
|
||||||
else
|
else
|
||||||
onoe "Error! Something is wrong."
|
onoe "Error! Something is wrong."
|
||||||
end
|
end
|
||||||
@ -900,7 +900,7 @@ class Foo < Formula
|
|||||||
ENV.deparallelize
|
ENV.deparallelize
|
||||||
ENV.no_optimization
|
ENV.no_optimization
|
||||||
system "make" # separate make and make install steps
|
system "make" # separate make and make install steps
|
||||||
system "make install"
|
system "make", "install"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user