summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9c474c4..92e9cba 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,8 @@ endif
#CFLAGS+=-DDZEN
CFLAGS+=$(EXTRA_CFLAGS)
-i3status.o: i3status.h
+%.o: %.c %.h
+ $(CC) $(CFLAGS) -c -o $@ $<
i3status: i3status.o