Skip to content

Commit

Permalink
Build .glob files at the default place and install them (#529)
Browse files Browse the repository at this point in the history
- Build .glob files in the same directory as the source .v file (Coq default)
- Install .glob files along with .vo and .v files

Fixes: #526
  • Loading branch information
xavierleroy authored Oct 26, 2024
1 parent a735bfb commit 6da3547
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ FORCE:
documentation: $(FILES)
mkdir -p doc/html
rm -f doc/html/*.html
coq2html -d doc/html/ -base compcert -short-names doc/*.glob \
coq2html -d doc/html/ -base compcert -short-names \
$(patsubst %, %/*.glob, $(DIRS)) \
$(filter-out doc/coq2html cparser/Parser.v, $^)

tools/ndfun: tools/ndfun.ml
Expand All @@ -283,7 +284,7 @@ latexdoc:
%.vo: %.v
@rm -f doc/$(*F).glob
@echo "COQC $*.v"
@$(COQC) -dump-glob doc/$(*F).glob $*.v
@$(COQC) $*.v
@$(PROFILE_ZIP)

%.v: %.vp tools/ndfun
Expand Down Expand Up @@ -358,8 +359,7 @@ ifeq ($(INSTALL_COQDEV),true)
for d in $(DIRS); do \
set -e; \
install -d $(DESTDIR)$(COQDEVDIR)/$$d; \
install -m 0644 $$d/*.vo $(DESTDIR)$(COQDEVDIR)/$$d/; \
install -m 0644 $$d/*.v $(DESTDIR)$(COQDEVDIR)/$$d/; \
install -m 0644 $$d/*.v $$d/*.vo $$d/*.glob $(DESTDIR)$(COQDEVDIR)/$$d/; \
if test -d $$d/.coq-native; then \
install -d $(DESTDIR)$(COQDEVDIR)/$$d/.coq-native; \
install -m 0644 $$d/.coq-native/* $(DESTDIR)$(COQDEVDIR)/$$d/.coq-native/; \
Expand All @@ -375,7 +375,8 @@ clean:
rm -f $(patsubst %, %/*.vo*, $(DIRS))
rm -f $(patsubst %, %/.*.aux, $(DIRS))
rm -rf $(patsubst %, %/.coq-native, $(DIRS))
rm -rf doc/html doc/*.glob
rm -f $(patsubst %, %/*.glob, $(DIRS))
rm -rf doc/html
rm -f driver/Version.ml
rm -f compcert.ini compcert.config
rm -f extraction/STAMP extraction/*.ml extraction/*.mli .depend.extr
Expand Down

0 comments on commit 6da3547

Please sign in to comment.