summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-22 23:35:08 +0800
committerruki <[email protected]>2023-11-22 23:35:08 +0800
commitd6ca7cd50de073f6ade3fa6a86c5faee9b4d6552 (patch)
treea054ca4ed5e1e7d60a9007bd6c9a79409718f8ba /core
parent0babd67de3c23dbdf8402b9ad8fa98edc825ab71 (diff)
public project generator
Diffstat (limited to 'core')
-rwxr-xr-xcore/src/demo/xmake.sh6
1 files changed, 4 insertions, 2 deletions
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
}