add debug target in Makefile - gramscii - A simple editor for ASCII box-and-arrow charts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit c5e820787de73a668d848dd16649e685eb36c3dd
 (DIR) parent c16e74036e791b2c1f9c19841fc75a60067aefec
 (HTM) Author: KatolaZ <katolaz@freaknet.org>
       Date:   Fri,  9 Aug 2019 05:51:46 +0100
       
       add debug target in Makefile
       
       Diffstat:
         M Makefile                            |       3 +++
         M gramscii.h                          |       2 --
       
       2 files changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       @@ -23,6 +23,9 @@ gramscii: ${OBJ}
        
        ${OBJ}: ${INC}
        
       +debug: clean 
       +        ${MAKE} ${MAKEFILE} CFLAGS="-O0 -Wall -pedantic -g -DDEBUG=1"
       +
        clean:
                @echo cleaning
                @rm -f gramscii ${OBJ}
 (DIR) diff --git a/gramscii.h b/gramscii.h
       @@ -82,8 +82,6 @@ typedef struct{
        #define progr_x(d) ((d) == DIR_L ? -1 : (d) == DIR_R ? 1 : 0)
        #define progr_y(d) ((d) == DIR_U ? -1 : (d) == DIR_D ? 1 : 0)
        
       -#define DEBUG 1
       -
        /** global variables **/ 
        
        lineset_t screen; /* what is visualised */