build: added auto deleting of configure~ for git

This commit is contained in:
Andrew Rioux 2023-05-07 18:12:28 -04:00
parent 8aab9be638
commit 968df54f59
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -13,7 +13,9 @@
// 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/>.
fn main() {
use std::fs;
fn main() -> std::io::Result<()> {
cc::Build::new().file("src/bridge.c").compile("bridge");
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-lib=static=nl-3");
println!("cargo:rustc-link-lib=static=nl-route-3");
fs::remove_file("libnl/configure~")?;
Ok(())
}