mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Makefile detect header change (#355)
This commit is contained in:
parent
2f413f8059
commit
6d7c25822a
7
Makefile
7
Makefile
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue