Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Glen Mével
stdpp
Commits
01d4aff9
Commit
01d4aff9
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
Update for Coq 8.7 coq_makefile
parent
8344ce42
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Makefile
+1
-9
1 addition, 9 deletions
Makefile
Makefile.coq.local
+5
-0
5 additions, 0 deletions
Makefile.coq.local
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
awk.Makefile
+2
-1
2 additions, 1 deletion
awk.Makefile
with
9 additions
and
10 deletions
Makefile
+
1
−
9
View file @
01d4aff9
...
...
@@ -3,14 +3,6 @@ ifeq ($(Y), 1)
YFLAG
=
-y
endif
# Determine Coq version
COQ_VERSION
=
$(
shell coqc
--version
| egrep
-o
'version 8.[0-9]'
| egrep
-o
'8.[0-9]'
)
COQ_MAKEFILE_FLAGS
?=
ifeq
($(COQ_VERSION), 8.6)
COQ_MAKEFILE_FLAGS
+=
-arg
-w
-arg
-notation-overridden
,-redundant-canonical-projection,-several-object-files
endif
# Forward most targets to Coq makefile (with some trick to make this phony)
%
:
Makefile.coq phony
+@make
-f
Makefile.coq
$@
...
...
@@ -25,7 +17,7 @@ clean: Makefile.coq
# Create Coq Makefile. POSIX awk can't do in-place editing, but coq_makefile wants the real filename, so we do some file gymnastics.
Makefile.coq
:
_CoqProject Makefile awk.Makefile
coq_makefile
$(
COQ_MAKEFILE_FLAGS
)
-f
_CoqProject
-o
Makefile.coq
coq_makefile
-f
_CoqProject
-o
Makefile.coq
mv
Makefile.coq Makefile.coq.tmp
&&
awk
-f
awk.Makefile Makefile.coq.tmp
>
Makefile.coq
&&
rm
Makefile.coq.tmp
# Install build-dependencies
...
...
This diff is collapsed.
Click to expand it.
Makefile.coq.local
0 → 100644
+
5
−
0
View file @
01d4aff9
uninstall
::
@
# This makes sure we also delete stale files in the destination directory
$(
HIDE
)
df
=
"
$(
COQLIBINSTALL
)
/
`
$(
COQMKFILE
)
-destination-of
"theories/base.v"
$(
COQLIBS
)
`
"
&&
\
echo
"RM in
$$
df"
&&
\
if
[
-d
"
$$
df"
]
;
then
find
"
$$
df"
\(
-name
"*.vo"
-o
-name
"*.v"
-o
-name
"*.glob"
-o
\(
-type
d
-empty
\)
\)
-print
-delete
;
fi
This diff is collapsed.
Click to expand it.
_CoqProject
+
1
−
0
View file @
01d4aff9
-Q theories stdpp
-arg -w -arg -notation-overridden,-redundant-canonical-projection,-several-object-files
theories/option.v
theories/fin_map_dom.v
theories/bset.v
...
...
This diff is collapsed.
Click to expand it.
awk.Makefile
+
2
−
1
View file @
01d4aff9
...
...
@@ -11,7 +11,8 @@
# Patch the uninstall target to work properly, and to also uninstall stale files.
# Also see <https://coq.inria.fr/bugs/show_bug.cgi?id=4907>.
/^uninstall:/ {
# This (and the section above) can be removed once we no longer support Coq 8.6.
/^uninstall: / {
print "uninstall:";
print "\tif [ -d \"$(DSTROOT)\"$(COQLIBINSTALL)/"PROJECT"/ ]; then find \"$(DSTROOT)\"$(COQLIBINSTALL)/"PROJECT"/ \\( -name \"*.vo\" -o -name \"*.v\" -o -name \"*.glob\" -o \\( -type d -empty \\) \\) -print -delete; fi";
getline;
...
...
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