Skip to content

Commit cb4499c

Browse files
committed
Fail recipe if patch fails
Sets -e on the shell so that when a patch fails, we don't try to compile RetroArch anyway.
1 parent 177544c commit cb4499c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ ifeq ($(PLATFORM),linux)
1414
ECHO = echo -e
1515
endif
1616

17+
SHELL := /bin/bash
18+
.SHELLFLAGS := -eu -o pipefail -c
19+
1720
# Function to print status messages
1821
print_status = $(ECHO) "\033[34m--- $1\033[0m"
1922

@@ -82,5 +85,5 @@ build: $(BUILD_DIR)/retroarch $(BUILD_DIR)/retroarch_miyoo354
8285

8386
clean:
8487
@$(call print_status, Cleaning)
85-
rm -rf $(BUILD_DIR)
86-
rm -rf bin
88+
rm -rf $(BUILD_DIR) || true
89+
rm -rf bin || true

0 commit comments

Comments
 (0)