From f0618935f2520000559bcfd8e72dbb9f316f3451 Mon Sep 17 00:00:00 2001 From: Thodoris Sotiropoulos Date: Sun, 5 Jan 2020 00:50:06 +0200 Subject: Add missing Make dependencies --- .gitignore | 1 + Makefile | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 70aba0a..7db22fd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ fzy fzytest *.o +*.d config.h test/acceptance/vendor/bundle diff --git a/Makefile b/Makefile index 746994f..886ef18 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ VERSION=1.0 CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE -CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -Werror=vla +CFLAGS+=-MD -Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps -Werror=vla PREFIX?=/usr/local MANDIR?=$(PREFIX)/share/man BINDIR?=$(PREFIX)/bin @@ -49,9 +49,11 @@ fmt: clang-format -i src/*.c src/*.h clean: - rm -f fzy test/fzytest src/*.o deps/*/*.o + rm -f fzy test/fzytest src/*.o src/*.d deps/*/*.o veryclean: clean rm -f config.h .PHONY: test check all clean veryclean install fmt acceptance + +-include $(OBJECTS:.o=.d) -- cgit v1.2.3