Merge pull request #884 from akien-mga/update-makefile

Update Makefile after recent buildsystem changes
pull/887/head
Rémi Verschelde 2022-10-07 22:25:58 +02:00
commit f69f1bb58f
1 changed files with 12 additions and 12 deletions

View File

@ -1,17 +1,17 @@
GENERATE_BINDINGS = auto TARGET = template_debug
HEADERS = godot-headers
TARGET = debug
USE_CLANG = no
BASE = scons use_llvm=$(USE_CLANG) generate_bindings=$(GENERATE_BINDINGS) target=$(TARGET) headers=$(HEADERS) BASE = scons target=$(TARGET) $(EXTRA_ARGS)
LINUX = $(BASE) platform=linux LINUX = $(BASE) platform=linux
WINDOWS = $(BASE) platform=windows WINDOWS = $(BASE) platform=windows
MACOS = $(BASE) platform=macos MACOS = $(BASE) platform=macos
all: .PHONY: usage
make linux usage:
make windows @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: linux:
@ -19,10 +19,10 @@ linux:
make linux64 make linux64
linux32: SConstruct linux32: SConstruct
$(LINUX) bits=32 $(LINUX) arch=x86_32
linux64: SConstruct linux64: SConstruct
$(LINUX) bits=64 $(LINUX) arch=x86_64
windows: windows:
@ -30,10 +30,10 @@ windows:
make windows64 make windows64
windows32: SConstruct windows32: SConstruct
$(WINDOWS) bits=32 $(WINDOWS) arch=x86_32
windows64: SConstruct windows64: SConstruct
$(WINDOWS) bits=64 $(WINDOWS) arch=x86_64
macos: SConstruct macos: SConstruct