diff options
author | Anna Arad <4895022+annagrram@users.noreply.github.com> | 2019-10-13 00:37:53 +0300 |
---|---|---|
committer | Mischievous Meerkat <engineerarun@gmail.com> | 2019-10-13 03:07:53 +0530 |
commit | 6d7c25822a89de1deb0a6326ab37160198b3a703 (patch) | |
tree | c18539349a71b60c452c15a30066096a0bd8bfc8 | |
parent | 2f413f80596f3946ab700189aaed7c07943ba253 (diff) | |
download | nnn-6d7c25822a89de1deb0a6326ab37160198b3a703.tar.gz |
Makefile detect header change (#355)
-rw-r--r-- | Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -59,14 +59,13 @@ LDLIBS += $(LDLIBS_CURSES) DISTFILES = src nnn.1 Makefile README.md LICENSE SRC = src/nnn.c +HEADERS = src/nnn.h BIN = nnn all: $(BIN) -$(SRC): src/nnn.h - -$(BIN): $(SRC) - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LDLIBS) +$(BIN): $(SRC) $(HEADERS) + $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS) # targets for backwards compatibility debug: $(BIN) |