From 46a847c22099a6d830f4f01fa9a0ec1dee414e43 Mon Sep 17 00:00:00 2001 From: Amir Plivatsky Date: Mon, 14 Sep 2015 17:47:15 +0300 Subject: [PATCH] Makefile: Use $(TARGET) instead of hard-coding "re". --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 8e8470b..21d746f 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ CFLAGS=-g -Wall -Os # Comment out when developing/testing #CFLAGS=-DDEBUG -g -Wall -O0 -TARG=re +TARGET=re OFILES=\ backtrack.o\ compile.o\ @@ -28,8 +28,8 @@ OFILES=\ HFILES=\ re1.5.h\ -re: $(OFILES) - $(CC) -o re $(OFILES) +$(TARGET): $(OFILES) + $(CC) -o $(TARGET) $(OFILES) %.o: %.c $(HFILES) $(CC) -c $(CFLAGS) $*.c @@ -37,8 +37,8 @@ re: $(OFILES) y.tab.h y.tab.c: parse.y bison -v -y parse.y -test: $(TARG) +test: $(TARGET) ./run-tests $(TFLAGS) clean: - rm -f *.o core re y.tab.[ch] y.output + rm -f *.o core $(TARGET) y.tab.[ch] y.output