diff options
| author | Melody Horn <melody@boringcactus.com> | 2021-04-11 18:41:18 -0600 | 
|---|---|---|
| committer | Melody Horn <melody@boringcactus.com> | 2021-04-11 18:41:18 -0600 | 
| commit | ade0629bc862004bcc069345ec91aa0142c1f257 (patch) | |
| tree | 973bac3c4d29f45a07a04beb88cfd3a6422dbf47 /src/makefile/mod.rs | |
| parent | ab249a1f95e898b2d81e480b32a5b6ad9e4a7087 (diff) | |
| download | makers-ade0629bc862004bcc069345ec91aa0142c1f257.tar.gz makers-ade0629bc862004bcc069345ec91aa0142c1f257.zip | |
add $^ for all prerequisites
Diffstat (limited to 'src/makefile/mod.rs')
| -rw-r--r-- | src/makefile/mod.rs | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index ac6090e..eb06939 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -348,6 +348,8 @@ impl<'a> Makefile<'a> {                  // The $* macro shall evaluate to the current target name with                  // its suffix deleted. (GNUism: the match stem)                  vec![target.stem.as_ref().unwrap_or(&target.name).to_owned()] +            } else if macro_name.starts_with('^') { +                target.prerequisites.clone()              } else {                  unreachable!()              }; |