summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-05-21 15:00:39 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-05-21 15:01:58 -0700
commita5543bc1c9e9b094e487365ddd2ee7e9ed0fb9c6 (patch)
tree5ede32c463f976a32ff1778bdac1cbb3d84dd928 /Makefile
parent2b3c3a85ec8aa8b4b94c0e594c32449dd70b4d26 (diff)
Move fzytest into test/ directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 54591a2..4f0db78 100644
--- a/Makefile
+++ b/Makefile
@@ -12,16 +12,16 @@ INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=${INSTALL} -m 644
OBJECTS=src/fzy.o src/match.o src/tty.o src/choices.o
-TESTOBJECTS=src/fzytest.o src/match.o src/choices.o
+TESTOBJECTS=test/fzytest.c src/match.o src/choices.o
all: fzy
-fzytest: $(TESTOBJECTS)
- $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $(TESTOBJECTS)
+test/fzytest: $(TESTOBJECTS)
+ $(CC) $(CFLAGS) $(CCFLAGS) -Isrc -o $@ $(TESTOBJECTS)
test: check
-check: fzytest
- $(DEBUGGER) ./fzytest
+check: test/fzytest
+ $(DEBUGGER) ./test/fzytest
fzy: $(OBJECTS)
$(CC) $(CFLAGS) $(CCFLAGS) -o $@ $(OBJECTS)
@@ -44,6 +44,6 @@ fmt:
clang-format -i src/*.c src/*.h
clean:
- rm -f fzy fzytest src/*.o
+ rm -f fzy test/fzytest src/*.o
.PHONY: test check all clean install fmt