<commit_before>include Makefile.config

TARGET = ocamlmerlin.native

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

OCAMLBUILD=ocamlbuild -Is .,typing,parsing,utils
OCAMLFIND=ocamlfind

all: $(TARGET)

$(TARGET):
	$(OCAMLBUILD) -use-ocamlfind $@

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

clean:
	$(OCAMLBUILD) -clean

dist:
	mkdir $(DISTNAME)
	cp -r $(DISTFILES) $(DISTNAME)
	tar cvzf $(DISTNAME).tar.gz $(DISTNAME)
	rm -rf $(DISTNAME)

distclean: clean
	rm -f Makefile.config $(DISTNAME).tar.gz

install: $(TARGET)
	install $(TARGET) $(BIN_DIR)/ocamlmerlin
	install -dv $(SHARE_DIR)/ocamlmerlin/vim
	install emacs/merlin.el $(SHARE_DIR)/emacs/site-lisp/merlin.el
	for file in vim/*; do \
	  if test -f $$file; then install $$file $(SHARE_DIR)/ocamlmerlin/vim ; \
	  else install -d $$file $(SHARE_DIR)/ocamlmerlin/vim;\
	  fi;\
	done
	@echo "Consult $(SHARE_DIR)/ocamlmerlin/vim/merlin.conf.vim to setup vim mode."

uninstall:
	rm -rf $(SHARE_DIR)/ocamlmerlin $(BIN_DIR)/ocamlmerlin $(SHARE_DIR)/emacs/site-lisp/merlin.el<commit_msg>Fix install target, contributed by <NAME><commit_after>include Makefile.config

TARGET = ocamlmerlin.native

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

OCAMLBUILD=ocamlbuild -Is .,typing,parsing,utils
OCAMLFIND=ocamlfind

all: $(TARGET)

$(TARGET):
	$(OCAMLBUILD) -use-ocamlfind $@

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

clean:
	$(OCAMLBUILD) -clean

dist:
	mkdir $(DISTNAME)
	cp -r $(DISTFILES) $(DISTNAME)
	tar cvzf $(DISTNAME).tar.gz $(DISTNAME)
	rm -rf $(DISTNAME)

distclean: clean
	rm -f Makefile.config $(DISTNAME).tar.gz

install: $(TARGET)
	install -dv $(BIN_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
	for file in vim/*; do \
	  if test -f $$file; then install -m 644 $$file $(SHARE_DIR)/ocamlmerlin/vim ; \
	  else install -d $$file $(SHARE_DIR)/ocamlmerlin/vim;\
	  fi;\
	done
	@echo "Consult $(SHARE_DIR)/ocamlmerlin/vim/merlin.conf.vim to setup vim mode."

uninstall:
	rm -rf $(SHARE_DIR)/ocamlmerlin $(BIN_DIR)/ocamlmerlin $(SHARE_DIR)/emacs/site-lisp/merlin.el
{'fraction_non_alphanumeric': 0.1517476555839727, 'fraction_numerical': 0.004262574595055414, 'mean_word_length': 4.548463356973995, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '268671', 'n_tokens_mistral': 980, 'n_tokens_neox': 915, 'n_words': 216}