aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <adamdharrison@gmail.com>2022-10-08 19:55:28 -0400
committerAdam <adamdharrison@gmail.com>2022-10-08 19:55:28 -0400
commitbbc81d71b895cb2e7acc7837b073ae37d7780df3 (patch)
treeeb8a6f4945943ef4ef62a2e77b482c401af1d9e9
parent3dc626084b0ade9c635a6c0219f4b3995cbbb3b6 (diff)
downloadlite-xl-plugin-manager-bbc81d71b895cb2e7acc7837b073ae37d7780df3.tar.gz
lite-xl-plugin-manager-bbc81d71b895cb2e7acc7837b073ae37d7780df3.zip
Fixed clean.
-rwxr-xr-xbuild.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 1af6400..6ea19a1 100755
--- a/build.sh
+++ b/build.sh
@@ -8,11 +8,10 @@
SRCS="*.c"
LDFLAGS="$LDFLAGS -lm -pthread -static-libgcc"
-[[ "$@" == "clean" ]] && rm -rf lib/libgit2/build lib/zlib/build lib/openssl/build lib/curl/build lib/libarchive/build-tmp lib/libzma/build lib/prefix $BIN *.exe && exit 0
+[[ "$@" == "clean" ]] && rm -rf lib/libgit2/build lib/zlib/build lib/openssl/build lib/curl/build lib/libarchive/build-tmp lib/liblzma/build lib/prefix $BIN *.exe && exit 0
[[ $OSTYPE == 'msys'* || $CC == *'mingw'* ]] && SSL_CONFIGURE="mingw64"
-# Build supporting libraries, libgit2, libz, libssl (with libcrypto), libpcre
-# [[ "$@" != *"-lz"* ]] && CFLAGS="$CFLAGS -Ilib/zlib" && SRCS="$SRCS lib/zlib/*.c"
+# Build supporting libraries, libgit2, libz, libssl (with libcrypto)
if [[ "$@" != *"-lz"* ]]; then
[ ! -e "lib/zlib" ] && echo "Make sure you've cloned submodules. (git submodule update --init --depth=1)" && exit -1
[ ! -e "lib/zlib/build" ] && cd lib/zlib && mkdir build && cd build && ../configure --prefix=`pwd`/../../prefix && $MAKE -j $JOBS && $MAKE install && cd ../../../