summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-25 13:29:00 +0800
committerruki <[email protected]>2022-12-25 13:29:00 +0800
commit8a03211beacebee9efe2bd7ccdc8cc6be22eeb27 (patch)
tree522b59791176e0cbf75a3813a04f00e714acf3a5 /configure
parent5b6d8a1aee248e676c27600ed13e6acaf0760fcd (diff)
improve configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure b/configure
index 1621b58bb..6cda002c0 100755
--- a/configure
+++ b/configure
@@ -3580,7 +3580,10 @@ _gmake_add_switches() {
echo "endif" >> "${xmake_sh_makefile}"
echo "" >> "${xmake_sh_makefile}"
echo "ifneq (\$(PREFIX),)" >> "${xmake_sh_makefile}"
+ echo "ifneq (\$(INSTALLDIR),)" >> "${xmake_sh_makefile}"
echo "INSTALLDIR:=\$(INSTALLDIR)/\$(PREFIX)" >> "${xmake_sh_makefile}"
+ echo "else" >> "${xmake_sh_makefile}"
+ echo "INSTALLDIR:=\$(PREFIX)" >> "${xmake_sh_makefile}"
echo "endif" >> "${xmake_sh_makefile}"
echo "" >> "${xmake_sh_makefile}"
echo "ifeq (\$(INSTALLDIR),)" >> "${xmake_sh_makefile}"