Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Coq Exercises
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Max Ole Elliger
Coq Exercises
Commits
c0bbe218
Commit
c0bbe218
authored
1 year ago
by
Max Ole Elliger
Browse files
Options
Downloads
Plain Diff
Merge tag 'comoproj-v2.3.1'
some fixes due to problems with coqc-8.16.1
parents
364279b6
b00108eb
No related branches found
No related tags found
No related merge requests found
Pipeline
#129967
passed
1 year ago
Stage: build
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+25
-4
25 additions, 4 deletions
Makefile
with
25 additions
and
4 deletions
Makefile
+
25
−
4
View file @
c0bbe218
...
...
@@ -10,8 +10,23 @@ all: coq html
coq
:
Makefile.coq
$(
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
$(
MAKE
)
-f
Makefile.coq html
VFILES
=
"
$(
shell echo
$(
COMPONENTS
)
| awk '
$(
GENCoqDoc
)
'
)
"
$(
MAKE
)
-e
-f
Makefile.coq html
Makefile.coq
:
_CoqProject
coq_makefile
-f
$<
-o
$@
COQDOCEXTRAFLAGS
=
"--lib-name
$(
PROJNAME
)
"
...
...
@@ -29,11 +44,17 @@ BEGIN { RS="[[:space:]]"; FS=":" } \
dirname = $$1;
\
libname = $$2;
\
print "-R " dirname " " libname;
\
print dirname;
\
}
system("find " dirname " -name
\"
*.v
\"
");
\
}
\
END { print "-docroot ." }
endef
define
GENDirList
BEGIN { RS="[[
:
space:]]"; FS=":" }
\
{ print $$1; }
endef
_CoqProject
:
Makefile
_CoqProject
:
Makefile
$(shell echo $(COMPONENTS) | awk '$(GENDirList)')
echo
$(
COMPONENTS
)
|
awk
'
$(
GENCoqPr
)
'
>
$@
.PHONY
:
all coq html clean
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment