summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Hawthorn <john.hawthorn@gmail.com>2016-05-21 14:56:03 -0700
committerJohn Hawthorn <john.hawthorn@gmail.com>2016-05-21 14:56:25 -0700
commit2b3c3a85ec8aa8b4b94c0e594c32449dd70b4d26 (patch)
treeb72c2815f22fbae416cf10284c5acd273c75af7f /Makefile
parent45499644d85a9ba93dd9f1504d1ca7df15b60148 (diff)
Move sources into src directory
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f5b488d..54591a2 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,8 @@ INSTALL=install
INSTALL_PROGRAM=$(INSTALL)
INSTALL_DATA=${INSTALL} -m 644
-OBJECTS=fzy.o match.o tty.o choices.o
-TESTOBJECTS=fzytest.o match.o choices.o
+OBJECTS=src/fzy.o src/match.o src/tty.o src/choices.o
+TESTOBJECTS=src/fzytest.o src/match.o src/choices.o
all: fzy
@@ -30,7 +30,7 @@ fzy: $(OBJECTS)
$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<
config.h:
- cp config.def.h config.h
+ cp src/config.def.h config.h
install: fzy
mkdir -p $(DESTDIR)$(BINDIR)
@@ -41,9 +41,9 @@ install: fzy
chmod 644 ${DESTDIR}${MANDIR}/man1/fzy.1
fmt:
- clang-format -i *.c *.h
+ clang-format -i src/*.c src/*.h
clean:
- rm -f fzy fzytest *.o
+ rm -f fzy fzytest src/*.o
.PHONY: test check all clean install fmt