Update Makefile after recent buildsystem changes

Fixes #882.
pull/884/head
Rémi Verschelde 2022-10-06 14:34:29 +02:00
parent 1507253bd5
commit 67c9b2f8f4
1 changed files with 12 additions and 12 deletions

View File

@ -1,17 +1,17 @@
GENERATE_BINDINGS = auto
HEADERS = godot-headers
TARGET = debug
USE_CLANG = no
TARGET = template_debug
BASE = scons use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS)
BASE = scons target=$(TARGET) $(EXTRA_ARGS)
LINUX = $(BASE) platform=linux
WINDOWS = $(BASE) platform=windows
MACOS = $(BASE) platform=macos
all:
make linux
make windows
.PHONY: usage
usage:
@echo -e "Specify one of the available targets:\n"
# https://stackoverflow.com/a/26339924
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/(^|\n)# Files(\n|$$)/,/(^|\n)# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | grep -E -v -e '^[^[:alnum:]]' -e '^$@$$'
@echo -e "\nDefine the SCons target with TARGET, and pass extra SCons arguments with EXTRA_ARGS."
linux:
@ -19,10 +19,10 @@ linux:
make linux64
linux32: SConstruct
$(LINUX) bits=32
$(LINUX) arch=x86_32
linux64: SConstruct
$(LINUX) bits=64
$(LINUX) arch=x86_64
windows:
@ -30,10 +30,10 @@ windows:
make windows64
windows32: SConstruct
$(WINDOWS) bits=32
$(WINDOWS) arch=x86_32
windows64: SConstruct
$(WINDOWS) bits=64
$(WINDOWS) arch=x86_64
macos: SConstruct