diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 |