This repository has been archived on 2024-04-19. You can view files and clone it, but cannot push or open issues or pull requests.
CORE-Manager/Makefile
2023-07-07 02:47:14 +02:00

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}