Skip to content
Snippets Groups Projects
Commit b7da2c46 authored by Loïc Correnson's avatar Loïc Correnson
Browse files

[ivette] make install fixes

parent 48c07a99
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,10 @@ ...@@ -21,6 +21,10 @@
# # # #
########################################################################## ##########################################################################
# --------------------------------------------------------------------------
# --- Ivette bootstrapper for OPAM installation
# --------------------------------------------------------------------------
echo "Building Ivette" echo "Building Ivette"
PWD=`pwd` PWD=`pwd`
...@@ -55,7 +59,7 @@ fi ...@@ -55,7 +59,7 @@ fi
echo "[2/3] Compiling Ivette" echo "[2/3] Compiling Ivette"
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
TMPDIR=`mktemp -d -t ivette` TMPDIR=`mktemp -d`
cd $TMPDIR cd $TMPDIR
tar zxf $PREFIX/lib/frama-c/ivette.tgz tar zxf $PREFIX/lib/frama-c/ivette.tgz
cd ivette cd ivette
......
...@@ -27,15 +27,17 @@ ...@@ -27,15 +27,17 @@
.PHONY: install uninstall .PHONY: install uninstall
install: install:
@echo "Installing Ivette (OPAM)" @echo "Installing Ivette…"
mkdir -p $(PREFIX)/bin @mkdir -p $(PREFIX)/bin
install ivette/ivette-opam.sh $(PREFIX)/bin/ivette @install ivette/ivette-opam.sh $(PREFIX)/bin/ivette
mkdir -p $(PREFIX)/lib/frama-c @mkdir -p $(PREFIX)/lib/frama-c
tar zcf $(PREFIX)/lib/frama-c/ivette.tgz ivette @tar zcf $(PREFIX)/lib/frama-c/ivette.tgz ivette
@echo "Done"
uninstall: uninstall:
@echo "Removing Ivette" @echo "Removing Ivette"
@rm -f $(PREFIX)/bin/ivette @rm -f $(PREFIX)/bin/ivette
@rm -f $(PREFIX)/lib/frama-c/ivette.tgz @rm -f $(PREFIX)/lib/frama-c/ivette.tgz
@rm -fr $(PREFIX)/lib/ivette # linux @rm -fr $(PREFIX)/lib/ivette # linux
@rm -fr /Applications/Ivette.app # macOS @rm -fr /Applications/Ivette.app # macOS
@echo "Done"
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