Skip to content
Snippets Groups Projects
Commit 48448482 authored by Ralf Jung's avatar Ralf Jung
Browse files

update for Coq Makefile hooks

parent 70e0a3ff
No related branches found
No related tags found
No related merge requests found
...@@ -10,5 +10,6 @@ ...@@ -10,5 +10,6 @@
*.bak *.bak
.coq-native/ .coq-native/
build-dep/ build-dep/
Makefile.coq* Makefile.coq
Makefile.coq.conf
*.crashcoqide *.crashcoqide
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
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
# Patch the uninstall target to work properly, and to also uninstall stale files. # 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>. # 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 "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"; 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; getline;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment