Skip to content

Commit 4dad2ef

Browse files
committed
added OUT_DIR to makefile targets
1 parent 2531546 commit 4dad2ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ all: $(OUT_DIR) kddp runtime stdlib ddp-setup ## compiles kdddp, the runtime, th
6868

6969
debug: $(OUT_DIR) kddp runtime-debug stdlib-debug ## same as all but the runtime and stdlib print debugging information
7070

71-
kddp: ## compiles kddp into build/DDP/bin/
71+
kddp: $(OUT_DIR) ## compiles kddp into build/DDP/bin/
7272
@echo "building kddp"
7373
cd $(CMD_DIR) ; '$(MAKE)' kddp
7474
$(CP) $(CMD_DIR)kddp/build/$(KDDP_BIN) $(KDDP_DIR_OUT)$(KDDP_BIN)
7575
$(KDDP_DIR_OUT)$(KDDP_BIN) dump-list-defs -o $(LIB_DIR_OUT)$(DDP_LIST_DEFS_NAME) $(DDP_LIST_DEFS_OUTPUT_TYPES)
7676

77-
ddp-setup: ## compiles ddp-setup into build/DDP/bin/
77+
ddp-setup: $(OUT_DIR) ## compiles ddp-setup into build/DDP/bin/
7878
@echo "building ddp-setup"
7979
cd $(CMD_DIR) ; '$(MAKE)' ddp-setup
8080
$(CP) $(CMD_DIR)ddp-setup/build/$(DDP_SETUP_BIN) $(DDP_SETUP_DIR_OUT)$(DDP_SETUP_BIN)
8181

82-
stdlib: ## compiles the stdlib and the Duden into build/DDP/lib/stdlib and build/DDP/Duden
82+
stdlib: $(OUT_DIR) ## compiles the stdlib and the Duden into build/DDP/lib/stdlib and build/DDP/Duden
8383
@echo "building the ddp-stdlib"
8484
cd $(STD_DIR) ; '$(MAKE)'
8585
$(CP) $(STD_DIR)$(STD_BIN) $(LIB_DIR_OUT)$(STD_BIN)
@@ -94,7 +94,7 @@ stdlib: ## compiles the stdlib and the Duden into build/DDP/lib/stdlib and build
9494
fi
9595
$(CP) $(STD_DIR)Makefile $(STD_DIR_OUT)Makefile
9696

97-
stdlib-debug: ## same as stdlib but will print debugging information
97+
stdlib-debug: $(OUT_DIR) ## same as stdlib but will print debugging information
9898
@echo "building the ddp-stdlib in debug mode"
9999
cd $(STD_DIR) ; '$(MAKE)' debug
100100
$(CP) $(STD_DIR)$(STD_BIN_DEBUG) $(LIB_DIR_OUT)$(STD_BIN)
@@ -109,7 +109,7 @@ stdlib-debug: ## same as stdlib but will print debugging information
109109
fi
110110
$(CP) $(STD_DIR)Makefile $(STD_DIR_OUT)Makefile
111111

112-
runtime: ## compiles the runtime into build/DDP/lib/stdlib
112+
runtime: $(OUT_DIR) ## compiles the runtime into build/DDP/lib/stdlib
113113
@echo "building the ddp-runtime"
114114
cd $(RUN_DIR) ; '$(MAKE)'
115115
$(CP) $(RUN_DIR)$(RUN_BIN) $(LIB_DIR_OUT)$(RUN_BIN)
@@ -118,7 +118,7 @@ runtime: ## compiles the runtime into build/DDP/lib/stdlib
118118
$(CP) $(RUN_DIR)source/ $(RUN_DIR_OUT)
119119
$(CP) $(RUN_DIR)Makefile $(RUN_DIR_OUT)Makefile
120120

121-
runtime-debug: ## same as runtime but prints debugging information
121+
runtime-debug: $(OUT_DIR) ## same as runtime but prints debugging information
122122
@echo "building the ddp-runtime in debug mode"
123123
cd $(RUN_DIR) ; '$(MAKE)' debug
124124
@echo copying $(RUN_DIR)$(RUN_BIN_DEBUG) to $(LIB_DIR_OUT)$(RUN_BIN)

0 commit comments

Comments
 (0)