avoid injecting ENV vars from Makefile

So that we can run "cargo build" without setting vars manually.
This commit is contained in:
Dietmar Maurer
2019-09-09 10:51:08 +02:00
parent d21ae955a6
commit 4a7de56e2f
6 changed files with 16 additions and 15 deletions

View File

@ -1,7 +1,8 @@
//! Exports configuration data from the build system
/// The configured configuration directory
pub const CONFIGDIR: &'static str = env!("PROXMOX_CONFIGDIR");
pub const CONFIGDIR: &'static str = "/etc/proxmox-backup";
pub const JS_DIR: &str = "/usr/share/javascript/proxmox-backup";
/// Prepend configuration directory to a file name
///
@ -13,5 +14,5 @@ pub const CONFIGDIR: &'static str = env!("PROXMOX_CONFIGDIR");
/// ```
#[macro_export]
macro_rules! configdir {
($subdir:expr) => (concat!(env!("PROXMOX_CONFIGDIR"), $subdir))
($subdir:expr) => (concat!("/etc/proxmox-backup", $subdir))
}