summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaked Flur2019-04-17 14:26:35 +0100
committerShaked Flur2019-04-17 14:26:35 +0100
commit52c6edef48da7c3ece39ec78d8925fba8c1bb62d (patch)
treee955d75c90a5cc5b19423605c184d4a191f9ab14
parentf091479ccfbe7861cd0620cef414887ccfe65090 (diff)
Allow libsail to be installed without the other things (for rmem)
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index bb4f9040..ae4b883a 100644
--- a/Makefile
+++ b/Makefile
@@ -30,11 +30,18 @@ install:
cp src/util.ml $(SHARE_DIR)/src
cp -r src/gen_lib $(SHARE_DIR)/src
cp -r src/lem_interp $(SHARE_DIR)/src
+ $(MAKE) install_libsail
+
+install_libsail:
+ -$(MAKE) uninstall_libsail
ocamlfind install sail src/META src/_build/libsail.* $$(find src/_build \( -name '*.mli' -or -name '*.cmi' -or -name '*.cmx' \) -and -not -name 'myocamlbuild.*')
uninstall:
if [ -z "$(SHARE_DIR)" ]; then echo SHARE_DIR is unset; false; else rm -rf $(SHARE_DIR); fi
rm -f $(INSTALL_DIR)/bin/sail
+ $(MAKE) uninstall_libsail
+
+uninstall_libsail:
ocamlfind remove sail
language: