From e3e095d3b1be9d0baae06ac9aa103952731b24e0 Mon Sep 17 00:00:00 2001 From: Quinn Date: Sat, 22 Mar 2025 12:14:19 +0100 Subject: [PATCH] fix: clean also requires ARCH --- makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/makefile b/makefile index aa9b514..534b70c 100644 --- a/makefile +++ b/makefile @@ -45,6 +45,7 @@ define wr_colour endef # set the correct environment variables depending on the platform +ifneq ($(MAKECMDGOALS),clean) ifeq ($(ARCH),linux-x86_64) CFLAGS += -target x86_64-pc-linux-gnu else ifeq ($(ARCH),win-x86_64) @@ -53,6 +54,7 @@ EXT=.exe else $(error you must set the ARCH environment variable to one of these: 'linux-x86_64' 'win-x86_64') endif +endif # compiles and execute the binary run: compile