From 5c7795b64609773b9266693d225f21db494a16c8 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 4 Jun 2016 05:11:52 -0400 Subject: don't call mkdir every time we compile something --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7369d72..f557e92 100644 --- a/Makefile +++ b/Makefile @@ -34,11 +34,13 @@ $(OUT): $(OBJ) $(SOUT): $(OBJ) $(QUIET_AR)$(AR) rcs $@ $^ -$(BUILD)%.o: $(SRC)%.c - @mkdir -p $(BUILD) +$(BUILD)%.o: $(SRC)%.c | $(BUILD) @$(MAKEDEPEND) -o $(<:$(SRC)%.c=$(BUILD).%.d) $< $(QUIET_CC)$(CC) $(ALLCFLAGS) -c -fPIC -o $@ $< +$(BUILD): + @mkdir -p $(BUILD) + $(SRC)screen.c: $(SRC)parser.h $(SRC)%.c: $(SRC)%.l -- cgit v1.2.3