Skip to content

Commit

Permalink
Makefile: Use $(TARGET) instead of hard-coding "re".
Browse files Browse the repository at this point in the history
  • Loading branch information
ampli committed Sep 14, 2015
1 parent 38c0ed7 commit 46a847c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -28,17 +28,17 @@ OFILES=\
HFILES=\
re1.5.h\

re: $(OFILES)
$(CC) -o re $(OFILES)
$(TARGET): $(OFILES)
$(CC) -o $(TARGET) $(OFILES)

%.o: %.c $(HFILES)
$(CC) -c $(CFLAGS) $*.c

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

0 comments on commit 46a847c

Please sign in to comment.