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

[ivette] conforms to global make install

parent 2b4745a2
No related branches found
No related tags found
No related merge requests found
...@@ -24,32 +24,24 @@ ...@@ -24,32 +24,24 @@
# --- OPAM Installation # --- OPAM Installation
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
ifeq ($(INSTALLDIR),) ifndef PREFIX
IVETTE_PREFIX=$(OPAM_SWITCH_PREFIX) then
else
IVETTE_PREFIX=$(INSTALLDIR)
endif
ifeq ($(IVETTE_PREFIX),)
install:: install::
@echo "Warning: not target for Ivette" @echo "Warning: not target for Ivette"
@echo " (no INSTALLDIR, nor OPAM_SWITCH_PREFIX)" @echo " (no INSTALLDIR, nor OPAM_SWITCH_PREFIX)"
else else
install:: install::
@echo "Installing Ivette to ${IVETTE_PREFIX}" @echo "Installing Ivette to ${PREFIX}"
@mkdir -p ${IVETTE_PREFIX}/bin @mkdir -p ${PREFIX}/bin
@install ivette/ivette-bootstrap.sh ${IVETTE_PREFIX}/bin/ivette @install ivette/ivette-bootstrap.sh ${PREFIX}/bin/ivette
@mkdir -p ${IVETTE_PREFIX}/lib/frama-c @mkdir -p ${PREFIX}/lib/frama-c
@tar zcf ${IVETTE_PREFIX}/lib/frama-c/ivette.tgz ivette @tar zcf ${PREFIX}/lib/frama-c/ivette.tgz ivette
uninstall:: uninstall::
@echo "Removing Ivette" @echo "Removing Ivette"
@rm -f ${IVETTE_PREFIX}/bin/ivette @rm -f ${PREFIX}/bin/ivette
@rm -f ${IVETTE_PREFIX}/lib/frama-c/ivette.tgz @rm -f ${PREFIX}/lib/frama-c/ivette.tgz
@rm -fr ${IVETTE_PREFIX}/lib/frama-c/Ivette.app @rm -fr ${PREFIX}/lib/frama-c/Ivette.app
@rm -fr ${IVETTE_PREFIX}/lib/frama-c/ivette @rm -fr ${PREFIX}/lib/frama-c/ivette
endif endif
...@@ -97,7 +97,7 @@ install: [ ...@@ -97,7 +97,7 @@ install: [
] ]
remove: [ remove: [
[make "PREFIX=%{prefix}%" "-f" "ivette/makefile.opam" "uninstall"] [make "PREFIX=%{prefix}%" "-f" "ivette/Makefile.installation" "uninstall"]
] ]
run-test: [ run-test: [
......
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