aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b97a12..e283a0b 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,9 @@ OBJ = $(SRC:.c=.o)
sxiv: $(OBJ)
$(CC) $(LDFLAGS) -o $@ $(OBJ) $(LIBS)
-.c.o: Makefile config.h
+$(OBJ): Makefile config.h
+
+.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
install: all