--- a/Makefile Mon Nov 13 13:52:00 2017 +0100 +++ b/Makefile Mon Nov 13 14:17:46 2017 +0100 @@ -37,7 +37,7 @@ OBJ = $(SRC:%.c=build/%$(OBJ_EXT)) -all: build/ucx build/$(BIN) +all: build build/$(BIN) build/$(BIN): $(OBJ) $(LD) -o $@ $^ $(LDFLAGS) @@ -45,9 +45,6 @@ build/%$(OBJ_EXT): src/%.c $(CC) -o $@ $(CFLAGS) -c $< -build/ucx: build - $(MKDIR) $@ - build: $(MKDIR) $@