diff --git a/Makefile b/Makefile index d5790fc..473192c 100644 --- a/Makefile +++ b/Makefile @@ -8,11 +8,11 @@ BINDIR = $(PREFIX)/bin CFLAGS = -O3 -march=native -mtune=native -pipe -s -flto -std=c99 -pedantic -Wall -SRC = src/*.c config.h +SRC != find src -name *.c INCLUDE = include -$(TARGET): $(SRC) - $(CC) $(SRC) -o $@ $(CFLAGS) -I$(INCLUDE) -I. +$(TARGET): $(SRC) config.h + $(CC) $(SRC) config.h -o $@ $(CFLAGS) -I$(INCLUDE) -I. dist: mkdir -p $(TARGET)-$(VERSION) diff --git a/src/io.c b/src/io.c index ef64234..3f46205 100644 --- a/src/io.c +++ b/src/io.c @@ -96,7 +96,6 @@ void save_file() void process_key() { - int c = read_key(); switch (c) { case '\r':