hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-03 08:44:46 +0200
committerhachem <im@hachem.wtf>2026-10-03 08:44:46 +0200
commit908e6d88f32c6eb1855d13156fad301c402a1798 (patch)
tree33c6e459c466052cf235a227720dddab86abd749 /Makefile
parent7fe8c5ed9d741a58118f145a5d5ed14e533b9d39 (diff)
feat: more qol after using it for a couple days
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