hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 087ffdee27d8026ed5d1f0cfd3146ba660246233
parent 3bee9a4d41eb1fb11c80ae84041d669c71dcbc0a
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Thu,  4 Feb 2021 21:53:23 -0500

gen-stdlib.sh: fix target names

Diffstat:
Mmk/gen-stdlib.sh | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mk/gen-stdlib.sh b/mk/gen-stdlib.sh @@ -36,7 +36,7 @@ gen_ssa() { printf "\$($cache)/$path/$file.ssa: \$(${var}_srcs) \$(${stdlib}_rt)" for dep in $* do - printf ' $(%s_%s)' "$stdlib" "$(mod_var "$dep")" + printf ' $(%s)' "$(mod_var "$dep")" done printf '\n' @@ -54,8 +54,8 @@ gen_lib() { path=$(mod_path "$mod") file=$(mod_file "$mod") var=$(mod_var "$mod") - printf "${stdlib}_$var=\$($cache)/$path/$file.o\n" - printf 'hare_%s_deps+=$(%s_%s)\n\n' "$stdlib" "$stdlib" "$var" + printf "%s=\$(%s)/%s/%s.o\n" "$var" "$cache" "$path" "$file" + printf 'hare_%s_deps+=$(%s)\n\n' "$stdlib" "$var" } genrules() {