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
Model registry
Monitor
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
Iris
stdpp
Commits
0ee1418d
Commit
0ee1418d
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'ci/ralf/makefile' into 'master'
update Makefile See merge request
!191
parents
7ae77142
c1a33c4f
No related branches found
No related tags found
1 merge request
!191
update Makefile
Pipeline
#35396
passed
4 years ago
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
Makefile
+29
-21
29 additions, 21 deletions
Makefile
coq-stdpp.opam
+0
-1
0 additions, 1 deletion
coq-stdpp.opam
with
30 additions
and
23 deletions
.gitignore
+
1
−
1
View file @
0ee1418d
...
...
@@ -17,5 +17,5 @@ Makefile.coq
Makefile.coq.conf
*.crashcoqide
html/
build
-
dep/
builddep/
_opam
This diff is collapsed.
Click to expand it.
Makefile
+
29
−
21
View file @
0ee1418d
# Default target
all
:
Makefile.coq
+@make
-f
Makefile.coq all
.PHONY
:
all
# Permit local customization
-include
Makefile.local
# Forward most targets to Coq makefile (with some trick to make this phony)
%
:
Makefile.coq phony
@
#echo "Forwarding $@"
+@make
-f
Makefile.coq
$@
all
:
Makefile.coq
+@make
-f
Makefile.coq all
.PHONY
:
all
phony
:
;
.PHONY
:
phony
clean
:
Makefile.coq
+@make
-f
Makefile.coq clean
find theories tests exercises solutions
\(
-name
"*.d"
-o
-name
"*.vo"
-o
-name
"*.vo[sk]"
-o
-name
"*.aux"
-o
-name
"*.cache"
-o
-name
"*.glob"
-o
-name
"*.vio"
\)
-print
-delete
||
true
rm
-f
Makefile.coq .lia.cache
rm
-f
Makefile.coq .lia.cache
builddep/
*
.PHONY
:
clean
# Create Coq Makefile.
...
...
@@ -20,27 +24,31 @@ Makefile.coq: _CoqProject Makefile
"
$(
COQBIN
)
coq_makefile"
-f
_CoqProject
-o
Makefile.coq
$(
EXTRA_COQFILES
)
# Install build-dependencies
build-dep/opam
:
opam Makefile
@
echo
"# Creating build-dep package."
@
mkdir
-p
build-dep
@
sed
<opam
-E
's/^(build|install|remove):.*/\1: []/; s/^name: *"(.*)" */name: "\1-builddep"/'
>
build-dep/opam
@
fgrep builddep build-dep/opam
>
/dev/null
||
(
echo
"sed failed to fix the package name"
&&
exit
1
)
# sanity check
OPAMFILES
=
$(
wildcard
*
.opam
)
BUILDDEPFILES
=
$(
addsuffix
-builddep
.opam,
$(
addprefix builddep/,
$(
basename
$(
OPAMFILES
))))
builddep/%-builddep.opam
:
%.opam Makefile
@
echo
"# Creating builddep package for
$<
."
@
mkdir
-p
builddep
@
sed
<
$<
-E
's/^(build|install|remove):.*/\1: []/; s/"(.*)"(.*= *version.*)$$/"\1-builddep"\2/;'
>
$@
build-dep
:
build-dep/opam phony
builddep-opamfiles
:
$(BUILDDEPFILES)
.PHONY
:
builddep-opamfiles
builddep
:
builddep-opamfiles
@
# We want opam to not just instal the build-deps now, but to also keep satisfying these
@
# constraints. Otherwise, `opam upgrade` may well update some packages to versions
@
# that are incompatible with our build requirements.
@
# To achieve this, we create a fake opam package that has our build-dependencies as
@
# dependencies, but does not actually install anything itself.
@
echo
"# Installing build-dep package."
@
opam
install
$(
OPAMFLAGS
)
build-dep/
@
echo
"# Installing builddep packages."
@
opam
install
$(
OPAMFLAGS
)
$(
BUILDDEPFILES
)
.PHONY
:
builddep
# Some files that do *not* need to be forwarded to Makefile.coq
Makefile
:
;
_CoqProject
:
;
opam
:
;
Makefile.local
:
;
# Backwards compatibility target
build-dep
:
builddep
.PHONY
:
build-dep
#
Phony wildcard targets
phony
:
;
.PHONY
:
phony
#
Some files that do *not* need to be forwarded to Makefile.coq.
# ("::" lets Makefile.local overwrite this.)
Makefile Makefile.local _CoqProject $(OPAMFILES)
::
;
This diff is collapsed.
Click to expand it.
opam
→
coq-stdpp.
opam
+
0
−
1
View file @
0ee1418d
opam-version: "2.0"
name: "coq-stdpp"
maintainer: "Ralf Jung <jung@mpi-sws.org>"
authors: "The std++ team"
license: "BSD-3-Clause"
...
...
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