<commit_before>-include Makefile.config

TARGET = ocamlmerlin.native

DISTNAME = ocamlmerlin-0.1
DISTFILES = configure Makefile README _tags vim emacs $(wildcard *.ml *.mli *.mly *.mll)

OCAMLBUILD=ocamlbuild -Is src,src/typing,src/parsing,src/utils
OCAMLFIND=ocamlfind

all: $(TARGET)

src/myocamlbuild_config.ml:
	@echo "Please run ./configure"
	@false

$(TARGET): src/myocamlbuild_config.ml
	$(OCAMLBUILD) -use-ocamlfind $@

.PHONY: $(TARGET) all clean distclean install uninstall

clean:
	$(OCAMLBUILD) -clean

check: $(TARGET)
	./test.sh

distclean: clean
	rm -f Makefile.config src/myocamlbuild_config.ml

install: $(TARGET)
	install -dv $(BIN_DIR)
	install -dv $(SHARE_DIR)
	install $(TARGET) $(BIN_DIR)/ocamlmerlin
	install -dv $(SHARE_DIR)/ocamlmerlin/vim
	install -dv $(SHARE_DIR)/emacs/site-lisp
	install -m 644 emacs/merlin.el $(SHARE_DIR)/emacs/site-lisp/merlin.el
	cp -R vim/* $(SHARE_DIR)/ocamlmerlin/vim/
	@echo "Consult $(SHARE_DIR)/ocamlmerlin/vim/plugin/merlin.vim to setup vim mode."

uninstall:
	rm -rf $(SHARE_DIR)/ocamlmerlin $(BIN_DIR)/ocamlmerlin $(SHARE_DIR)/emacs/site-lisp/merlin.el
<commit_msg>Makefile: small how-to to setup vim quickly<commit_after>-include Makefile.config

TARGET = ocamlmerlin.native

DISTNAME = ocamlmerlin-0.1
DISTFILES = configure Makefile README _tags vim emacs $(wildcard *.ml *.mli *.mly *.mll)

OCAMLBUILD=ocamlbuild -Is src,src/typing,src/parsing,src/utils
OCAMLFIND=ocamlfind

all: $(TARGET)

src/myocamlbuild_config.ml:
	@echo "Please run ./configure"
	@false

$(TARGET): src/myocamlbuild_config.ml
	$(OCAMLBUILD) -use-ocamlfind $@

.PHONY: $(TARGET) all clean distclean install uninstall

clean:
	$(OCAMLBUILD) -clean

check: $(TARGET)
	./test.sh

distclean: clean
	rm -f Makefile.config src/myocamlbuild_config.ml

install: $(TARGET)
	install -dv $(BIN_DIR)
	install -dv $(SHARE_DIR)
	install $(TARGET) $(BIN_DIR)/ocamlmerlin
	install -dv $(SHARE_DIR)/ocamlmerlin/vim
	install -dv $(SHARE_DIR)/emacs/site-lisp
	install -m 644 emacs/merlin.el $(SHARE_DIR)/emacs/site-lisp/merlin.el
	cp -R vim/* $(SHARE_DIR)/ocamlmerlin/vim/
	@echo
	@echo 
	@echo "Quick setup for VIM"
	@echo "-------------------"
	@echo "Add $(SHARE_DIR)/ocamlmerlin/vim to your runtime path, e.g.:"
	@echo "  :set rtp+=$(SHARE_DIR)/ocamlmerlin/vim"
	@echo 

uninstall:
	rm -rf $(SHARE_DIR)/ocamlmerlin $(BIN_DIR)/ocamlmerlin $(SHARE_DIR)/emacs/site-lisp/merlin.el

{'fraction_non_alphanumeric': 0.15162907268170425, 'fraction_numerical': 0.004177109440267335, 'mean_word_length': 4.556844547563805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2505875', 'n_tokens_mistral': 993, 'n_tokens_neox': 950, 'n_words': 203}