From 8f5bee45c62886e4d6049ebbd338dc4d79283222 Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Wed, 12 Jun 2024 23:20:49 +0100 Subject: [PATCH] Reformat compile script --- compile | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/compile b/compile index a980492..d2fbee2 100755 --- a/compile +++ b/compile @@ -18,18 +18,13 @@ done CC=clang CFLAGS="-Wall -Werror -pedantic " LIBFLAGS="-fPIC -shared" -INCLUDE="\ - $(find src -type d | xargs -I{} echo -n "-I{} ") \ -" -TEST_INCLUDE="\ - $(find tests -type d | xargs -I{} echo -n "-I{} ") \ -" -SRC="\ - $(find src -type f -name "*.c" | xargs -I{} echo -n "{} ") \ -" -TEST_SRC="\ - $(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ") \ -" + +INCLUDE="$(find src -type d | xargs -I{} echo -n "-I{} ")" +SRC="$(find src -type f -name "*.c" | xargs -I{} echo -n "{} ")" + +TEST_INCLUDE="$(find tests -type d | xargs -I{} echo -n "-I{} ")" +TEST_SRC="$(find tests -type f -name "*.c" | xargs -I{} echo -n "{} ")" + BUILD_DIR="libwapp-build/posix-$BUILD_TYPE" if [[ -d $BUILD_DIR ]]; then rm -rf $BUILD_DIR