Skip to content

Commit 818762e

Browse files
committed
Update Makefile for _CoqProject generation
1 parent c8c1734 commit 818762e

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

theories/_CoqProject

+11-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,14 @@
22

33
-arg -w -arg -notation-overridden
44

5-
.
5+
./CtxEqLemmas.v
6+
./CtxEquiv.v
7+
./Elaborator.v
8+
./LibTactics.v
9+
./Parser.v
10+
./ParserExtraction.v
11+
./Presup.v
12+
./PresupLemmas.v
13+
./Relations.v
14+
./Syntax.v
15+
./System.v

theories/makefile

+12-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
empty :=
2+
space := $(empty) $(empty)
13
COQMAKEFILE := makefile.coq
4+
COQFILES := $(sort $(wildcard ./*.v) $(patsubst %.vy,%.v,$(wildcard ./*.vy)))
25

36
.PHONY: all
47
all: $(COQMAKEFILE)
@@ -13,4 +16,12 @@ Parser.v: Parser.vy
1316
menhir --coq "$?"
1417

1518
$(COQMAKEFILE): _CoqProject
16-
coq_makefile -f "$?" -o "$@"
19+
coq_makefile -f _CoqProject -o "$@"
20+
21+
.PHONY: update_CoqProject
22+
update_CoqProject:
23+
(echo "-Q . Mcltt"; \
24+
echo ""; \
25+
echo "-arg -w -arg -notation-overridden"; \
26+
echo ""; \
27+
echo -e "$(subst $(space),\n,$(COQFILES))") > _CoqProject

0 commit comments

Comments
 (0)