From e0d7744eebb5399d5d38052fda61921e202eb6aa Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 25 Apr 2025 01:48:40 -0400 Subject: [PATCH] Make file now detects windows or not and does the weird thing. --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 444066a..ba968fc 100644 --- a/Makefile +++ b/Makefile @@ -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