25 lines
767 B
Makefile
25 lines
767 B
Makefile
NAME=CORE-Manager
|
|
BUILD_DIR=out
|
|
BUILD_LINUX=${NAME}.elf
|
|
BUILD_WINDOWS=${NAME}.exe
|
|
GODOT_EXPORT=$(shell which godot) --display-driver=dummy --rendering-method=dummy --rendering-driver=dummy --audio-driver=Dummy --headless --export-release
|
|
|
|
dist: help
|
|
help:
|
|
@echo "Available tasks: all {export}"
|
|
@echo " export {clean,export-linux,export-windows}"
|
|
@echo " export-linux"
|
|
@echo " export-windows"
|
|
@echo " clean"
|
|
@echo -e "\n{Executes} [Alias]"
|
|
all: export
|
|
export: clean
|
|
mkdir -p ${BUILD_DIR}
|
|
@make export-linux
|
|
@make export-windows
|
|
export-linux:
|
|
${GODOT_EXPORT} Linux ${BUILD_DIR}/${BUILD_LINUX}
|
|
export-windows:
|
|
${GODOT_EXPORT} Windows ${BUILD_DIR}/${BUILD_WINDOWS}
|
|
clean:
|
|
rm -rf ${BUILD_DIR}
|