From: W. Trevor King Date: Thu, 28 Jun 2012 11:48:17 +0000 (-0400) Subject: Fix $(BUILD) -> $(BUILD_DIR) in k_model_utils.c rule. X-Git-Url: http://git.tremily.us/?p=sawsim.git;a=commitdiff_plain;h=f72ca66576375516d6705af60a1e72596c2ec73b Fix $(BUILD) -> $(BUILD_DIR) in k_model_utils.c rule. BUILD isn't defined, and the old way gave errors like: $ make -j17 all_bin mkdir build notangle -Rk-model-utils.c src/sawsim.nw > build/k_model_utils.c /bin/sh: cannot create build/k_model_utils.c: Directory nonexistent make: *** [build/k_model_utils.c] Error 2 make: *** Waiting for unfinished jobs.... You'd only have seen this error with parallel builds, otherwise BUILD_DIR would have already have been created as a dependency of another file by the time k_model_utils.c needed it. --- diff --git a/src/sawsim.nw b/src/sawsim.nw index 2e0f0c4..ecba1c3 100644 --- a/src/sawsim.nw +++ b/src/sawsim.nw @@ -5230,7 +5230,7 @@ check_k_model_MODS = parse string_eval K_MODEL_MODS = k_model parse string_eval K_MODEL_SRC = $(BUILD_DIR)/k_model_utils.c $(BUILD_DIR)/global.h \ $(K_MODEL_MODS:%=$(BUILD_DIR)/%.c) $(K_MODEL_MODS:%=$(BUILD_DIR)/%.h) -$(BUILD_DIR)/k_model_utils.c : $(SRC_DIR)/sawsim.nw | $(BUILD) +$(BUILD_DIR)/k_model_utils.c : $(SRC_DIR)/sawsim.nw | $(BUILD_DIR) notangle -Rk-model-utils.c $< > $@ $(BIN_DIR)/k_model_utils : $(K_MODEL_SRC) | $(BIN_DIR) $(CC) $(CFLAGS) $(LDFLAGS) -g -o $@ $< $(K_MODEL_MODS:%=$(BUILD_DIR)/%.c) $(LIBS:%=-l%)