makefile - Pause GNU Make in a Windows console if an error occurs -


part of install app responsible for, compiles c code libraries. done in console using gnu make.

so, part of install, console window pops open, see make file output wiz compiles , links, when finished console window closes , installer continues.

all good, unless there compilation error. make file bugs out , console window closes before have chance figure out happening.

so, i'd happen have console window pause 'press key continue' type functionality, if there error makefile console stays open. otherwise, exit normal , close console.

i can't work out how in gnu makefile or batch file run make.

this should trick:

if not errorlevel 0 pause 

type help if in dos more info on errorlevel usage.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -