Skip to content
Snippets Groups Projects
Commit e638acb6 authored by kgardas's avatar kgardas Committed by Austin Seipp
Browse files

fix sed expression in build dependencies rules to work well with non-GNU sed (fixes #8764)


The patch is provided by Christian Maeder <Christian.Maeder@dfki.de>

Signed-off-by: default avatarKarel Gardas <karel.gardas@centrum.cz>
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent 27fe1285
No related branches found
No related tags found
No related merge requests found
......@@ -53,18 +53,15 @@ endif
# Foo.dyn_o Foo.o : Foo.hs
# lines, and create corresponding hi-rule lines
# <dollar>(eval <dollar>(call hi-rule,Foo.dyn_hi Foo.hi : %hi: %o Foo.hs))
sed '/hs$$$$/ p ; \
/hs$$$$/ s/o /hi /g ; \
/hs$$$$/ s/:/ : %hi: %o / ; \
/hs$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/ ; \
/hs$$$$/ s/$$$$/))/ ; \
/hs-boot$$$$/ p ; \
/hs-boot$$$$/ s/o-boot /hi-boot /g ; \
/hs-boot$$$$/ s/:/ : %hi-boot: %o-boot / ; \
/hs-boot$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/ ; \
/hs-boot$$$$/ s/$$$$/))/' \
$$@.tmp2 > $$@
sed -e '/hs$$$$/ p' -e '/hs$$$$/ s/o /hi /g' \
-e '/hs$$$$/ s/:/ : %hi: %o /' \
-e '/hs$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/' \
-e '/hs$$$$/ s/$$$$/))/' \
-e '/hs-boot$$$$/ p' -e '/hs-boot$$$$/ s/o-boot /hi-boot /g' \
-e '/hs-boot$$$$/ s/:/ : %hi-boot: %o-boot /' \
-e '/hs-boot$$$$/ s/^/$$$$(eval $$$$(call hi-rule,/' \
-e '/hs-boot$$$$/ s/$$$$/))/' \
$$@.tmp2 > $$@
# Some of the C files (directly or indirectly) include the generated
# includes files.
$$($1_$2_depfile_c_asm) : $$(includes_H_CONFIG) $$(includes_H_PLATFORM)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment