summaryrefslogtreecommitdiff
path: root/subplotlib/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'subplotlib/build.rs')
-rw-r--r--subplotlib/build.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/subplotlib/build.rs b/subplotlib/build.rs
index 5f94883..d1eeefd 100644
--- a/subplotlib/build.rs
+++ b/subplotlib/build.rs
@@ -17,9 +17,12 @@ use std::path::Path;
fn main() {
let subplots = glob("*.md").expect("failed to find subplots in subplotlib");
let tests = Path::new("tests");
+ let subplots = subplots.chain(Some(Ok("../subplot.md".into())));
+ let subplots = subplots
+ .chain(glob("../tests/subplots/common/*.md").expect("failed to find common subplots"));
for entry in subplots {
let entry = entry.expect("failed to get subplot dir entry in subplotlib");
- let mut inc = tests.join(&entry);
+ let mut inc = tests.join(&entry.file_name().unwrap());
inc.set_extension("rs");
if !inc.exists() {
panic!("missing include file: {}", inc.display());