SAMPLE=lua/builder_test.lua all: test reset: ifeq '$(OS)' 'Windows_NT' powershell -executionpolicy bypass .\scripts\reset_build.ps1 else sh -x ./scripts/reset_build.sh endif %.cpp : %.rl ragel -o $@ $< build: src/guecs/lel_parser.cpp meson compile -j 10 -C builddir release_build: meson --wipe builddir -Db_ndebug=true --buildtype release meson compile -j 10 -C builddir debug_build: meson setup --wipe builddir -Db_ndebug=true --buildtype debugoptimized meson compile -j 10 -C builddir test: build ./builddir/bezos_tests run: build test ifeq '$(OS)' 'Windows_NT' powershell "cp ./builddir/bezos.exe ." ./bezos -d $(SAMPLE) else ./builddir/bezos -d $(SAMPLE) endif debug: build gdb --nx -x .gdbinit --ex run --args builddir/bezos_tests debug_run: build gdb --nx -x .gdbinit --batch --ex run --ex bt --ex q --args builddir/bezos clean: meson compile --clean -C builddir debug_test: build gdb --nx -x .gdbinit --ex run --args builddir/bezos_tests -e