Make file now detects windows or not and does the weird thing.

This commit is contained in:
Zed A. Shaw 2025-04-25 01:48:40 -04:00
parent 5aa9bcb655
commit e0d7744eeb

View file

@ -1,7 +1,11 @@
all: build 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 $@ $<
@ -25,11 +29,12 @@ test: build
./builddir/runtests
run: build test
ifeq '$(OS)' 'Windows_NT'
powershell "cp ./builddir/zedcaster.exe ."
./zedcaster
run_not_window:
else
./builddir/zedcaster
endif
debug: build
gdb --nx -x .gdbinit --ex run --args builddir/zedcaster