aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-06-04 05:20:40 -0400
committerJesse Luehrs <doy@tozt.net>2016-06-04 05:26:19 -0400
commit67bc8d54a22a763e88c86fbd9a4fe93351b8bb46 (patch)
treeeb23f1be1df9ea894b655d5956e9da7e55f76985 /Makefile
parent7514add8092e5e7cb1475407dcb3d43ac3b30289 (diff)
downloadrunes-67bc8d54a22a763e88c86fbd9a4fe93351b8bb46.tar.gz
runes-67bc8d54a22a763e88c86fbd9a4fe93351b8bb46.zip
don't mkdir build every time we compile a thing
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3b56d03..ff00d8a 100644
--- a/Makefile
+++ b/Makefile
@@ -66,11 +66,13 @@ libvt100/libvt100.a: make-libvt100
make-libvt100:
@if ! $(MAKE) -q -C libvt100 static; then $(MAKE) -C libvt100 static && MAKELEVEL=$(echo "${MAKELEVEL}-1" | bc) exec $(MAKE) $(MAKECMDGOALS); fi
-$(BUILD)%.o: $(SRC)%.c
- @mkdir -p $(BUILD)
+$(BUILD)%.o: $(SRC)%.c | $(BUILD)
@$(MAKEDEPEND) -o $(<:$(SRC)%.c=$(BUILD).%.d) $<
$(QUIET_CC)$(CC) $(ALLCFLAGS) -c -o $@ $<
+$(BUILD):
+ @mkdir -p $(BUILD)
+
$(SRC)screen.c: $(SRC)parser.h
$(SRC)%.c: $(SRC)%.l