From d6ca7cd50de073f6ade3fa6a86c5faee9b4d6552 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Nov 2023 23:35:08 +0800 Subject: public project generator --- core/src/demo/xmake.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/src') diff --git a/core/src/demo/xmake.sh b/core/src/demo/xmake.sh index d50c6cbf3..47e86b227 100755 --- a/core/src/demo/xmake.sh +++ b/core/src/demo/xmake.sh @@ -60,6 +60,8 @@ target "demo" xmake_after_install() { local target=${1} local installdir=${2} - print "\t@if test -f ${installdir}/bin/xmake.exe; then rm ${installdir}/bin/xmake.exe; fi" >> "${xmake_sh_makefile}" - print "\t@cp ${buildir}/xmake.exe ${installdir}/share/xmake" >> "${xmake_sh_makefile}" + if test_eq "${project_generator}" "gmake"; then + print "\t@if test -f ${installdir}/bin/xmake.exe; then rm ${installdir}/bin/xmake.exe; fi" >> "${xmake_sh_makefile}" + print "\t@cp ${buildir}/xmake.exe ${installdir}/share/xmake" >> "${xmake_sh_makefile}" + fi } -- cgit v1.3.1