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
df509b21
Commit
df509b21
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
remove no-longer-needed Makefile hackery
parent
5f134375
No related branches found
No related tags found
No related merge requests found
Pipeline
#12728
passed
6 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Makefile
+1
-3
1 addition, 3 deletions
Makefile
awk.Makefile
+0
-23
0 additions, 23 deletions
awk.Makefile
with
1 addition
and
26 deletions
Makefile
+
1
−
3
View file @
df509b21
...
@@ -12,11 +12,9 @@ clean: Makefile.coq
...
@@ -12,11 +12,9 @@ clean: Makefile.coq
rm
-f
Makefile.coq
rm
-f
Makefile.coq
.PHONY
:
clean
.PHONY
:
clean
# Create Coq Makefile. POSIX awk can't do in-place editing, but coq_makefile wants the real
# Create Coq Makefile.
# filename, so we do some file gymnastics.
Makefile.coq
:
_CoqProject Makefile awk.Makefile
Makefile.coq
:
_CoqProject Makefile awk.Makefile
"
$(
COQBIN
)
coq_makefile"
-f
_CoqProject
-o
Makefile.coq
"
$(
COQBIN
)
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
# Install build-dependencies
build-dep/opam
:
opam Makefile
build-dep/opam
:
opam Makefile
...
...
This diff is collapsed.
Click to expand it.
awk.Makefile
deleted
100644 → 0
+
0
−
23
View file @
5f134375
# awk program that patches the Makefile generated by Coq.
# Detect the name this project will be installed under.
/\$\(COQLIBINSTALL\)\/.*\/\$\$i/ {
# Wow, POSIX awk is really broken. I mean, isn't it supposed to be a text processing language?
# And there is not even a way to access the matched groups of a regexp...?!? Lucky enough,
# we can just split the string at '/' here.
split($0, PIECES, /\//);
PROJECT=PIECES[2];
}
# 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>.
# 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;
next
}
# This forwards all unchanged lines
1
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