Skip to content
Snippets Groups Projects
Commit a1d01c1c authored by Max Ole Elliger's avatar Max Ole Elliger :penguin:
Browse files

Merge tag 'comoproj-v2.3.1' into pre-release/comoproj/coqc/v8.18.0

some fixes due to problems with coqc-8.16.1
...@@ -11,8 +11,23 @@ all: coq html ...@@ -11,8 +11,23 @@ all: coq html
coq: Makefile.coq coq: Makefile.coq
$(MAKE) -f Makefile.coq all $(MAKE) -f Makefile.coq all
define GENCoqDoc
BEGIN { RS="[[:space:]]"; FS=":" } \
{ \
dirname = $$1; \
cmd = "coqdep -f _CoqProject -sort " dirname; \
while ((cmd | getline) > 0) { \
if ($$0 ~ "^" dirname && !seen[$$0]) { \
print $$0; \
seen[$$0] = 1; \
} \
} \
close(cmd); \
}
endef
html: Makefile.coq html: Makefile.coq
$(MAKE) -f Makefile.coq html VFILES="$(shell echo $(COMPONENTS) | awk '$(GENCoqDoc)')" $(MAKE) -e -f Makefile.coq html
Makefile.coq: _CoqProject Makefile.coq: _CoqProject
coq_makefile -f $< -o $@ COQDOCEXTRAFLAGS = "--lib-name $(PROJNAME)" coq_makefile -f $< -o $@ COQDOCEXTRAFLAGS = "--lib-name $(PROJNAME)"
...@@ -25,20 +40,22 @@ clean: Makefile.coq ...@@ -25,20 +40,22 @@ clean: Makefile.coq
rm -f _CoqProject rm -f _CoqProject
define GENCoqPr define GENCoqPr
BEGIN { RS="[[:space:]]"; FS=":" }\ BEGIN { RS="[[:space:]]"; FS=":" } \
{ \ { \
dirname = $$1; \ dirname = $$1; \
libname = $$2; \ libname = $$2; \
print "-R " dirname " " libname; \ print "-R " dirname " " libname; \
find = "find " dirname " -name '*.v' -maxdepth 1"; \ system("find " dirname " -name \"*.v\""); \
while ((find | getline) > 0) { \ } \
print; \ END { print "-docroot ." }
} \ endef
close(find); \
} define GENDirList
BEGIN { RS="[[:space:]]"; FS=":" } \
{ print $$1; }
endef endef
_CoqProject: Makefile _CoqProject: Makefile $(shell echo $(COMPONENTS) | awk '$(GENDirList)')
echo $(COMPONENTS) | awk '$(GENCoqPr)' > $@ echo $(COMPONENTS) | awk '$(GENCoqPr)' > $@
.PHONY: all coq html clean .PHONY: all coq html clean
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment