mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
build: Make the sed(1) command more portable.
BSD sed(1) requires an argument after -i giving the suffix to put on the backup it makes. Also, the regular expression given doesn't seem to work for me. This command should work everywhere. Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
185c0b412d
commit
923ec78c01
@@ -150,8 +150,9 @@ vkd3d_v_widl_1 =
|
|||||||
EXTRA_DIST += $(widl_headers) $(widl_headers:.h=.idl)
|
EXTRA_DIST += $(widl_headers) $(widl_headers:.h=.idl)
|
||||||
$(widl_headers): %.h: %.idl
|
$(widl_headers): %.h: %.idl
|
||||||
if HAVE_WIDL
|
if HAVE_WIDL
|
||||||
$(VKD3D_V_WIDL)$(WIDL) -o $@ $<
|
$(VKD3D_V_WIDL)$(WIDL) -h -o $@.tmp $<
|
||||||
sed -e '/#include <\(rpc.h\|rpcndr.h\)>/d' -i $@
|
$(SED) -e '/#include <rpc.h>/d' -e '/#include <rpcndr.h>/d' <$@.tmp >$@
|
||||||
|
$(RM) $@.tmp
|
||||||
else
|
else
|
||||||
echo "widl is required to generate $<"
|
echo "widl is required to generate $<"
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user