From 8a03211beacebee9efe2bd7ccdc8cc6be22eeb27 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 25 Dec 2022 13:29:00 +0800 Subject: improve configure --- configure | 3 +++ 1 file changed, 3 insertions(+) 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}" -- cgit v1.3.1