From cafbb17e7038caff45d801decb3a236da8c3e808 Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 12 Mar 2025 14:32:00 +0300 Subject: [PATCH] install_easy: make systemd if systemd detected --- install_easy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/install_easy.sh b/install_easy.sh index 165acfe..08477ea 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -69,7 +69,14 @@ check_bins() echo found architecture "\"$arch\"" elif [ -f "$EXEDIR/Makefile" ] && exists make; then echo trying to compile - [ "$SYSTEM" = "macos" ] && make_target=mac + case $SYSTEM in + macos) + make_target=mac + ;; + systemd) + make_target=systemd + ;; + esac CFLAGS="-march=native ${CFLAGS}" make -C "$EXEDIR" $make_target || { echo could not compile make -C "$EXEDIR" clean