hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a4fb984..66c84ca 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,7 @@ endif
TARGET := todo
SRC := todo.c
+HDR := config.h
PREFIX ?= /usr/local
bindir := $(DESTDIR)$(PREFIX)/bin
@@ -34,8 +35,8 @@ mandir := $(DESTDIR)$(PREFIX)/share/man/man1
all: $(TARGET)
-$(TARGET): $(SRC)
- $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS)
+$(TARGET): $(SRC) $(HDR)
+ $(CC) $(CFLAGS) $(SRC) -o $@ $(LDFLAGS)
clean:
rm -rf $(TARGET) $(TARGET).dSYM