chiark / gitweb /
Syntax: Provide convenience syntax &( for $(eval
[subdirmk.git] / generate
index c2dc42da1ae75eb7ca8f17c1c0e0c635de22541c..b564260dea4c02e4385fc0b36974e04efbddf718 100755 (executable)
--- a/generate
+++ b/generate
@@ -371,6 +371,8 @@ sub process_input_mk ($$$$) {
                $note_varref->($2,!!$1) if m{^($esc)?([^()\$]+\))};
            }
            elsif (s{^\$(\d+)}{}) { ddbl_only($&); oud "\${$1}"; }
+           elsif (s{^\(\s*$esc(?=$lc_re)}{}) { od "\$(call ${var_prefix}" }
+           elsif (s{^\(\s*(?=\S)}{}        ) { od "\$(call "              }
            elsif (s{^\{}{}) {
                err 'macro invocation cannot be re-$-doubled' if $ddbl;
                od '${eval ${call ';