<commit_before>
all: rust csharp

rust:
	echo "Installing Rust dependencies"
	git clone --depth 1 --recursive https://github.com/rust-lang/rust.git rust
	git clone --depth 1 --recursive https://github.com/phildawes/racer.git racer-src
	cd racer-src && cargo build --release
	mv racer-src/target/release/racer ./racer
	rm -rf racer-src

csharp:
	echo "Installing C# dependencies"
	git clone --depth 1 --recursive https://github.com/OmniSharp/omnisharp-server omnisharp
	cd omnisharp && xbuild
	mv omnisharp/bin/Debug/OmniSharp.exe ./OmniSharp.exe
	rm -rf omnisharp
<commit_msg>ext/Makefile: add js, sh and irony-mode dependencies<commit_after>CACHE_DIR="$(HOME)/.emacs.d/private/cache/`hostname`/`emacs --version | grep -o '2[0-9]\.[0-9]'`"
ELPA_DIR="$(HOME)/.emacs.d/.cask/`emacs --version | grep -o '2[0-9]\.[0-9]\.[0-9]'`/elpa"

LLVMV="3.8.0"
LLVM="clang+llvm-$(LLVMV)-x86_64-apple-darwin"

#

all: rust csharp

rust:
	@echo "Installing Rust dependencies"
	git clone --depth 1 --recursive https://github.com/rust-lang/rust.git rust
	git clone --depth 1 --recursive https://github.com/phildawes/racer.git racer-src
	cd racer-src && cargo build --release
	mv racer-src/target/release/racer ./racer
	rm -rf racer-src

csharp:
	@echo "Installing C# dependencies"
	git clone --depth 1 --recursive https://github.com/OmniSharp/omnisharp-server omnisharp
	cd omnisharp && xbuild
	mv omnisharp/bin/Debug/OmniSharp.exe ./OmniSharp.exe
	rm -rf omnisharp

js:
	@echo "Installing js2-mode dependencies"
	npm -g install web-beautify trepanjs

sh:
	@echo "Installing zsh/bash dependencies"
	brew install zshdb bashdb

cc:
	@echo "Installing irony-mode dependencies"
	[ -f "clang.tar.xz" ] || wget "http://llvm.org/releases/$(LLVMV)/$(LLVM).tar.xz" -O clang.tar.xz
	@if [ ! -d clang ]; then \
		tar -xzvf clang.tar.xz; \
		mv "$(LLVM)" clang; \
	fi
	@mkdir -p build; cd build && cmake -DCMAKE_INSTALL_PREFIX=$(CACHE_DIR)/irony/ \
		-DLIBCLANG_LIBRARY=~/.emacs.d/ext/clang/lib/libclang.dylib \
		-DLIBCLANG_INCLUDE_DIR=~/.emacs.d/ext/clang/include/ \
		$(ELPA_DIR)/irony-2*/server && \
		cmake --build . --use-stderr --config Release --target install
	install_name_tool -change @rpath/libclang.dylib /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libclang.dylib $(CACHE_DIR)/irony/bin/irony-server
{'fraction_non_alphanumeric': 0.1592767972449419, 'fraction_numerical': 0.01162290142057684, 'mean_word_length': 3.7331975560081467, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3892079', 'n_tokens_mistral': 975, 'n_tokens_neox': 902, 'n_words': 190}