From a5543bc1c9e9b094e487365ddd2ee7e9ed0fb9c6 Mon Sep 17 00:00:00 2001 From: John Hawthorn Date: Sat, 21 May 2016 15:00:39 -0700 Subject: Move fzytest into test/ directory --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3