2024-04-15 05:38:21 -04:00

40 lines
1.2 KiB
Makefile

# defaults to linux, expects you to already have made the debugging world.
default:
@echo Cleaning build directory.
@rm --verbose -rf mods/
@echo CLEANED!
@echo Transpiling Forgotten Times into lua...
@npx tstl
@echo Successfully built Forgotten Times.
@echo Copying mod conf files...
@./important_scripts/move_conf_files.sh
@echo Successfully copied mod conf files.
@./important_scripts/copy_textures.sh
@echo Starting Minetest.
@minetest --go --gameid forgotten-lands --world $$HOME/.minetest/worlds/debugging
windows:
@echo Transpiling Forgotten Times into lua...
@npx tstl
@echo Successfully built Forgotten Times.
@echo Starting Minetest.
@../../bin/minetest.exe
linux:
@echo Cleaning build directory.
@rm --verbose -rf mods/
@echo CLEANED!
@echo Transpiling Forgotten Times into lua...
@npx tstl
@echo Successfully built Forgotten Times.
@echo Copying mod conf files...
@./important_scripts/move_conf_files.sh
@echo Successfully copied mod conf files.
@./important_scripts/copy_textures.sh
@echo Starting Minetest.
@minetest --go --gameid forgotten-lands --world $$HOME/.minetest/worlds/debugging
clean:
@echo Destroying the built game.
@rm --verbose -rf mods/
@echo "It's done."