other: remove some build script triggers (#818)

This commit is contained in:
Clement Tsang 2022-09-28 04:31:58 -04:00 committed by GitHub
parent dfd21f57dc
commit 94d238a437
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,8 +23,8 @@ fn create_dir(dir: &Path) -> Result<()> {
} }
fn main() -> Result<()> { fn main() -> Result<()> {
const COMPLETION_DIR: &str = "target/tmp/bottom/completion"; const COMPLETION_DIR: &str = "./target/tmp/bottom/completion/";
const MANPAGE_DIR: &str = "target/tmp/bottom/manpage"; const MANPAGE_DIR: &str = "./target/tmp/bottom/manpage/";
match env::var_os("BTM_GENERATE") { match env::var_os("BTM_GENERATE") {
Some(var) if !var.is_empty() => { Some(var) if !var.is_empty() => {
@ -52,10 +52,6 @@ fn main() -> Result<()> {
_ => {} _ => {}
} }
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=./src/clap.rs");
println!("cargo:rerun-if-changed=.{}", COMPLETION_DIR);
println!("cargo:rerun-if-changed=.{}", MANPAGE_DIR);
println!("cargo:rerun-if-env-changed=BTM_GENERATE"); println!("cargo:rerun-if-env-changed=BTM_GENERATE");
Ok(()) Ok(())