From 52c6edef48da7c3ece39ec78d8925fba8c1bb62d Mon Sep 17 00:00:00 2001 From: Shaked Flur Date: Wed, 17 Apr 2019 14:26:35 +0100 Subject: Allow libsail to be installed without the other things (for rmem) --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) 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: -- cgit v1.2.3