Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Template Coq-Project
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
Template Coq-Project
Commits
a1d01c1c
Commit
a1d01c1c
authored
1 year ago
by
Max Ole Elliger
Browse files
Options
Downloads
Plain Diff
Merge tag 'comoproj-v2.3.1' into pre-release/comoproj/coqc/v8.18.0
some fixes due to problems with coqc-8.16.1
parents
f61fedf6
b00108eb
Branches
pre-release/comoproj/coqc-8.18.0-ocaml-4.13.1
release/comoproj/coqc-8.18.0-ocaml-4.13.1
release/comoproj/coqc/v8.18.0
Tags
comoproj-v2.3.1-coqc-8.18.0-ocaml-4.13.1
comoproj-v2.3.1-coqc-v8.18.0
No related merge requests found
Pipeline
#132896
passed
1 year ago
Stage: build
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+27
-10
27 additions, 10 deletions
Makefile
with
27 additions
and
10 deletions
Makefile
+
27
−
10
View file @
a1d01c1c
...
@@ -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
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