1use std::process::Command;
2
3pub use gnu_make as make;
5
6#[cfg(any(target_os = "freebsd", target_os = "dragonfly",
7 target_os = "netbsd", target_os = "openbsd",
8 target_os = "bitrig"))]
9pub fn gnu_make() -> Command { Command::new("gmake") }
10
11#[cfg(not(any(target_os = "freebsd", target_os = "dragonfly",
12 target_os = "netbsd", target_os = "openbsd",
13 target_os = "bitrig")))]
14pub fn gnu_make() -> Command { Command::new("make") }
15
16#[cfg(any(target_os = "freebsd", target_os = "dragonfly",
17 target_os = "netbsd", target_os = "openbsd",
18 target_os = "bitrig"))]
19pub fn bsd_make() -> Command { Command::new("make") }