summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-08-09 05:58:08 +0100
committerKatolaZ <katolaz@freaknet.org>2019-08-09 05:58:08 +0100
commit3ba178677800de55393f8ec80752ffe72660931a (patch)
tree3214a3c1839b8289d40d5cb6cf5eff21166f6508 /Makefile
parentc5e820787de73a668d848dd16649e685eb36c3dd (diff)
Use target-specific vars for debug target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index eec14c1..b2299c8 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,9 @@ INC = config.h gramscii.h arg.h
OBJ = ${SRC:.c=.o}
DISTFILES = ${SRC} ${INC} Makefile config.mk README.md Changelog
+DEBUG = -O0 -Wall -pedantic -g -DDEBUG
+
+
all: options gramscii
options:
@@ -23,8 +26,8 @@ gramscii: ${OBJ}
${OBJ}: ${INC}
-debug: clean
- ${MAKE} ${MAKEFILE} CFLAGS="-O0 -Wall -pedantic -g -DDEBUG=1"
+debug: CFLAGS = ${DEBUG}
+debug: clean all
clean:
@echo cleaning