mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-17 05:55:47 +01:00
fix: clean also requires ARCH
This commit is contained in:
2
makefile
2
makefile
@@ -45,6 +45,7 @@ define wr_colour
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
# set the correct environment variables depending on the platform
|
# set the correct environment variables depending on the platform
|
||||||
|
ifneq ($(MAKECMDGOALS),clean)
|
||||||
ifeq ($(ARCH),linux-x86_64)
|
ifeq ($(ARCH),linux-x86_64)
|
||||||
CFLAGS += -target x86_64-pc-linux-gnu
|
CFLAGS += -target x86_64-pc-linux-gnu
|
||||||
else ifeq ($(ARCH),win-x86_64)
|
else ifeq ($(ARCH),win-x86_64)
|
||||||
@@ -53,6 +54,7 @@ EXT=.exe
|
|||||||
else
|
else
|
||||||
$(error you must set the ARCH environment variable to one of these: 'linux-x86_64' 'win-x86_64')
|
$(error you must set the ARCH environment variable to one of these: 'linux-x86_64' 'win-x86_64')
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
# compiles and execute the binary
|
# compiles and execute the binary
|
||||||
run: compile
|
run: compile
|
||||||
|
|||||||
Reference in New Issue
Block a user