diff options
author | Jesse Luehrs <doy@tozt.net> | 2016-06-04 05:11:52 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2016-06-04 05:13:40 -0400 |
commit | 5c7795b64609773b9266693d225f21db494a16c8 (patch) | |
tree | 45edb7f8b02f4865a9d2e155f71e17d61f1914c6 | |
parent | 2366dd25e544bbf69d9d6e64a81e98b0d10be2be (diff) | |
download | libvt100-5c7795b64609773b9266693d225f21db494a16c8.tar.gz libvt100-5c7795b64609773b9266693d225f21db494a16c8.zip |
don't call mkdir every time we compile something
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |