aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-25 21:20:11 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-25 21:20:11 -0600
commit40c9e2383d2e989cf5e51f6f855b869c7235f694 (patch)
tree61c17790adb344d854ef7c4ab7702eaf2f2d38ac
parent64c8fd597f8259ff6e485fd7baf7ad6e1c30d7bb (diff)
downloadyapymake-40c9e2383d2e989cf5e51f6f855b869c7235f694.tar.gz
yapymake-40c9e2383d2e989cf5e51f6f855b869c7235f694.zip
swap order of suffixes in inference rule parsing
fuck the POSIX docs for putting it as `.s1.s2` and also as `.s2.s1`
-rw-r--r--yapymake/makefile/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yapymake/makefile/__init__.py b/yapymake/makefile/__init__.py
index 23cd144..52e2262 100644
--- a/yapymake/makefile/__init__.py
+++ b/yapymake/makefile/__init__.py
@@ -161,7 +161,7 @@ class Makefile:
commands = [CommandLine(c) for c in command_token_strings]
# we don't know yet if it's a target rule or an inference rule
- match = re.fullmatch(r'(?P<s1>(\.[^/.]+)?)(?P<s2>\.[^/.]+)', targets[0])
+ match = re.fullmatch(r'(?P<s2>(\.[^/.]+)?)(?P<s1>\.[^/.]+)', targets[0])
# we don't want to catch special targets, though
special_target_match = re.fullmatch(r'\.[A-Z]+', targets[0])
if len(targets) == 1 and len(prerequisites) == 0 and match is not None and special_target_match is None: