Add missing capstone-patch rule

This commit is contained in:
pancake 2023-12-07 21:17:53 +01:00
parent ecfb908b6c
commit ffd0573fc8
2 changed files with 7 additions and 0 deletions

View File

@ -268,6 +268,7 @@ else
capstone: capstone-sync capstone: capstone-sync
patch-capstone capstone-patch:
capstone-sync: capstone-sync:
ifeq ($(WITHOUT_PULL),1) ifeq ($(WITHOUT_PULL),1)

View File

@ -179,6 +179,12 @@ else
echo "Warning: Cannot find system wide capstone" echo "Warning: Cannot find system wide capstone"
fi fi
if [ "$NEED_CAPSTONE" = 1 ]; then
if [ ! -d shlr/capstone/.git -a ! -d .git ]; then
NEED_CAPSTONE=0
fi
fi
if [ "$NEED_CAPSTONE" = 1 ]; then if [ "$NEED_CAPSTONE" = 1 ]; then
if [ -d shlr/capstone ]; then if [ -d shlr/capstone ]; then
${MAKE} -C shlr headsup 2> /dev/null || rm -rf shlr/capstone ${MAKE} -C shlr headsup 2> /dev/null || rm -rf shlr/capstone