Skip to content

Commit e11be2d

Browse files
authored
chore: improve the indentation consistency of souffle Makefile goal (#878)
Signed-off-by: behnazh-w <[email protected]>
1 parent 718c085 commit e11be2d

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

Makefile

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -143,32 +143,33 @@ else
143143
OS_DISTRO := "$(shell grep '^NAME=' /etc/os-release | sed 's/^NAME=//' | sed 's/"//g')"
144144
endif
145145
endif
146+
# If Souffle cannot be installed, we advise the user to install it manually
147+
# and return status code 0, which is not considered a failure.
146148
.PHONY: souffle
147149
souffle:
148150
if ! command -v souffle; then \
149-
echo "Installing system dependency: souffle" && \
150-
case $(OS_DISTRO) in \
151-
"Oracle Linux") \
152-
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-oraclelinux-8-souffle-2.4-Linux.rpm \
153-
;; \
154-
"Fedora Linux") \
155-
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-fedora-34-souffle-2.4-Linux.rpm \
156-
;; \
157-
"Ubuntu") \
158-
sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg; \
159-
echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list; \
160-
sudo apt update; \
161-
sudo apt install souffle; \
162-
;; \
163-
"Darwin") \
164-
if command -v brew; then \
165-
brew install --HEAD souffle-lang/souffle/souffle; \
166-
else \
167-
echo "Unable to install Souffle. Please install it manually." && exit 0; \
168-
fi ;; \
169-
esac; \
151+
echo "Installing system dependency: souffle" && \
152+
case $(OS_DISTRO) in \
153+
"Oracle Linux") \
154+
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-oraclelinux-8-souffle-2.4-Linux.rpm;; \
155+
"Fedora Linux") \
156+
sudo dnf -y install https://github.com/souffle-lang/souffle/releases/download/2.4/x86_64-fedora-34-souffle-2.4-Linux.rpm;; \
157+
"Ubuntu") \
158+
sudo wget https://souffle-lang.github.io/ppa/souffle-key.public -O /usr/share/keyrings/souffle-archive-keyring.gpg; \
159+
echo "deb [signed-by=/usr/share/keyrings/souffle-archive-keyring.gpg] https://souffle-lang.github.io/ppa/ubuntu/ stable main" | sudo tee /etc/apt/sources.list.d/souffle.list; \
160+
sudo apt update; \
161+
sudo apt install souffle;; \
162+
"Darwin") \
163+
if command -v brew; then \
164+
brew install --HEAD souffle-lang/souffle/souffle; \
165+
else \
166+
echo "Unable to install Souffle. Please install it manually." && exit 0; \
167+
fi;; \
168+
*) \
169+
echo "Unsupported OS distribution: $(OS_DISTRO)"; exit 0;; \
170+
esac; \
170171
fi && \
171-
command -v souffle || true
172+
command -v souffle
172173

173174
# Install gnu-sed on mac using homebrew
174175
.PHONY: gnu-sed

0 commit comments

Comments
 (0)