Skip to content

Commit

Permalink
Update Makefile for _CoqProject generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Ailrun committed Dec 13, 2023
1 parent c8c1734 commit 818762e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
12 changes: 11 additions & 1 deletion theories/_CoqProject
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,14 @@

-arg -w -arg -notation-overridden

.
./CtxEqLemmas.v
./CtxEquiv.v
./Elaborator.v
./LibTactics.v
./Parser.v
./ParserExtraction.v
./Presup.v
./PresupLemmas.v
./Relations.v
./Syntax.v
./System.v
13 changes: 12 additions & 1 deletion theories/makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
empty :=
space := $(empty) $(empty)
COQMAKEFILE := makefile.coq
COQFILES := $(sort $(wildcard ./*.v) $(patsubst %.vy,%.v,$(wildcard ./*.vy)))

.PHONY: all
all: $(COQMAKEFILE)
Expand All @@ -13,4 +16,12 @@ Parser.v: Parser.vy
menhir --coq "$?"

$(COQMAKEFILE): _CoqProject
coq_makefile -f "$?" -o "$@"
coq_makefile -f _CoqProject -o "$@"

.PHONY: update_CoqProject
update_CoqProject:
(echo "-Q . Mcltt"; \
echo ""; \
echo "-arg -w -arg -notation-overridden"; \
echo ""; \
echo -e "$(subst $(space),\n,$(COQFILES))") > _CoqProject

0 comments on commit 818762e

Please sign in to comment.