Skip to content

Commit

Permalink
toplevel make clean
Browse files Browse the repository at this point in the history
I prefer code duplication over loops or generic rules, for better debuggability
  • Loading branch information
samuelgruetter committed Feb 8, 2019
1 parent 233a0fd commit ba39230
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
default_target: all

.PHONY: update_all clone_all coqutil riscv-coq bedrock2 compiler processor
.PHONY: update_all clone_all coqutil riscv-coq bedrock2 compiler processor clean_coqutil clean_riscv-coq clean_bedrock2 clean_compiler clean_processor

clone_all:
git submodule update --init --recursive
Expand All @@ -17,16 +17,33 @@ export DEPS_DIR
coqutil:
$(MAKE) -C $(DEPS_DIR)/coqutil

clean_coqutil:
$(MAKE) -C $(DEPS_DIR)/coqutil clean

riscv-coq: coqutil
$(MAKE) -C $(DEPS_DIR)/riscv-coq all

clean_riscv-coq:
$(MAKE) -C $(DEPS_DIR)/riscv-coq clean

bedrock2: coqutil
$(MAKE) -C $(ABS_ROOT_DIR)/bedrock2

clean_bedrock2:
$(MAKE) -C $(ABS_ROOT_DIR)/bedrock2 clean

compiler: riscv-coq bedrock2
$(MAKE) -C $(ABS_ROOT_DIR)/compiler

clean_compiler:
$(MAKE) -C $(ABS_ROOT_DIR)/compiler clean

processor: riscv-coq
$(MAKE) -C $(ABS_ROOT_DIR)/processor

all: compiler bedrock2 processor
clean_processor:
$(MAKE) -C $(ABS_ROOT_DIR)/processor clean

all: coqutil riscv-coq bedrock2 compiler processor

clean: clean_coqutil clean_riscv-coq clean_bedrock2 clean_compiler clean_processor

0 comments on commit ba39230

Please sign in to comment.