Make file now detects windows or not and does the weird thing.
This commit is contained in:
parent
5aa9bcb655
commit
e0d7744eeb
1 changed files with 7 additions and 2 deletions
9
Makefile
9
Makefile
|
@ -1,7 +1,11 @@
|
||||||
all: build test
|
all: build test
|
||||||
|
|
||||||
reset:
|
reset:
|
||||||
|
ifeq '$(OS)' 'Windows_NT'
|
||||||
powershell -executionpolicy bypass .\scripts\reset_build.ps1
|
powershell -executionpolicy bypass .\scripts\reset_build.ps1
|
||||||
|
else
|
||||||
|
sh -x ./scripts/reset_build.sh
|
||||||
|
endif
|
||||||
|
|
||||||
%.cpp : %.rl
|
%.cpp : %.rl
|
||||||
ragel -o $@ $<
|
ragel -o $@ $<
|
||||||
|
@ -25,11 +29,12 @@ test: build
|
||||||
./builddir/runtests
|
./builddir/runtests
|
||||||
|
|
||||||
run: build test
|
run: build test
|
||||||
|
ifeq '$(OS)' 'Windows_NT'
|
||||||
powershell "cp ./builddir/zedcaster.exe ."
|
powershell "cp ./builddir/zedcaster.exe ."
|
||||||
./zedcaster
|
./zedcaster
|
||||||
|
else
|
||||||
run_not_window:
|
|
||||||
./builddir/zedcaster
|
./builddir/zedcaster
|
||||||
|
endif
|
||||||
|
|
||||||
debug: build
|
debug: build
|
||||||
gdb --nx -x .gdbinit --ex run --args builddir/zedcaster
|
gdb --nx -x .gdbinit --ex run --args builddir/zedcaster
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue