diff options
author | Son Ho | 2023-01-09 21:38:48 +0100 |
---|---|---|
committer | Son HO | 2023-02-03 11:21:46 +0100 |
commit | 6de775cde92e37f2e5e70d3db34a326a4c831920 (patch) | |
tree | 4b9d0f9d4625852f847c51c50c1f83d7ef42b750 /tests | |
parent | 32a201a46a14c9628346a48c4f6fddf96d18b996 (diff) |
Make modifications to the Makefiles
Diffstat (limited to 'tests')
-rw-r--r-- | tests/coq/Makefile | 12 | ||||
-rw-r--r-- | tests/fstar/Makefile | 12 |
2 files changed, 18 insertions, 6 deletions
diff --git a/tests/coq/Makefile b/tests/coq/Makefile index c2b9e379..af4753ee 100644 --- a/tests/coq/Makefile +++ b/tests/coq/Makefile @@ -9,10 +9,13 @@ COPY_MAKEFILES = $(addprefix copy-makefile-,$(ALL_DIRS)) GEN_COQ_PROJECT = $(addprefix gen-coq-project-,$(ALL_DIRS)) .PHONY: all -all: $(COPY_MAKEFILES) $(GEN_COQ_PROJECT) $(VERIFY_DIRS) +all: prepare-projects verify -.PHONY: clean -clean: $(CLEAN_DIRS) +.PHONY: prepare-projects +prepare-projects: $(COPY_MAKEFILES) $(GEN_COQ_PROJECT) + +.PHONY: verify +verify: $(VERIFY_DIRS) .PHONY: verif-% verif-%: @@ -34,6 +37,9 @@ gen-coq-project-%: sed -i -z "s/ \n/\n/g" $*/_CoqProject # Remove whitespaces at the end of lines cat $*/_CoqProject +.PHONY: clean +clean: $(CLEAN_DIRS) + .PHONY: clean-% clean-%: cd $* && make clean diff --git a/tests/fstar/Makefile b/tests/fstar/Makefile index aad3354e..6cf03386 100644 --- a/tests/fstar/Makefile +++ b/tests/fstar/Makefile @@ -7,10 +7,13 @@ CLEAN_DIRS = $(addprefix clean-,$(ALL_DIRS)) COPY_MAKEFILES = $(addprefix copy-makefile-,$(ALL_DIRS)) .PHONY: all -all: $(COPY_MAKEFILES) $(VERIFY_DIRS) +all: prepare-projects verify -.PHONY: clean -clean: $(CLEAN_DIRS) +.PHONY: prepare-projects +prepare-projects: $(COPY_MAKEFILES) + +.PHONY: verify +verify: $(VERIFY_DIRS) .PHONY: verif-% verif-%: @@ -22,6 +25,9 @@ copy-makefile-%: echo "# This file was automatically generated - modify ../Makefile.template instead" >> $*/Makefile cat Makefile.template >> $*/Makefile +.PHONY: clean +clean: $(CLEAN_DIRS) + .PHONY: clean-% clean-%: cd $* && make clean |