Here is my makefile code
all: ass3
ass3: ass3.asm
    nasm -f elf ass3.asm
    ld -m elf_i386 -s ass3.o -o demo
    echo Start debugging\n
    gdb demo
    echo Breakpoint after first case has been calculated\n
    b *0x804809e
    echo Printing 1st case answer\n
    i ecx
    echo Breakpoint after second case has been calculated\n
    b *0x80480ba
    i ecx
    echo Breakpoint on third case showing the execution path when the difference of time    is negative\n
    b *0x8048113
    echo Since Initial time is large than final time, it will jump to an error catcher\n
    r
    echo Program caught the error and terminated the program\n
binaries = demo
clean: 
    rm -f $(binaries) *~
When I type make, it stops on gdb and when I press "q" (which is quit), It just proceeds executing the echo until it stops on b *0x804809e which is a gdb command
How do I make my makefile code do a demo run on gdb?
 
     
    