build: added auto deleting of configure~ for git
This commit is contained in:
parent
8aab9be638
commit
968df54f59
@ -13,7 +13,9 @@
|
|||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
fn main() {
|
use std::fs;
|
||||||
|
|
||||||
|
fn main() -> std::io::Result<()> {
|
||||||
cc::Build::new().file("src/bridge.c").compile("bridge");
|
cc::Build::new().file("src/bridge.c").compile("bridge");
|
||||||
|
|
||||||
let dst = autotools::Config::new("libnl").reconf("-vi").build();
|
let dst = autotools::Config::new("libnl").reconf("-vi").build();
|
||||||
@ -21,4 +23,8 @@ fn main() {
|
|||||||
println!("cargo:rustc-link-search=native={}/lib", dst.display());
|
println!("cargo:rustc-link-search=native={}/lib", dst.display());
|
||||||
println!("cargo:rustc-link-lib=static=nl-3");
|
println!("cargo:rustc-link-lib=static=nl-3");
|
||||||
println!("cargo:rustc-link-lib=static=nl-route-3");
|
println!("cargo:rustc-link-lib=static=nl-route-3");
|
||||||
|
|
||||||
|
fs::remove_file("libnl/configure~")?;
|
||||||
|
|
||||||
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user