<commit_before>TARGET		= build/Release/node-eclib.node
GF			= gf_complete
JERASURE	= Jerasure
LIBERAS		= erasurecode

LIBDIR		= /usr/local/lib
LIBS		= $(addsuffix .so, $(GF) $(JERASURE) $(LIBERAS))
DEPS		= $(addprefix $(LIBDIR)/lib, $(LIBS))


all: $(TARGET)

$(TARGET): $(DEPS)
	sudo npm install -g node-gyp

$(GF):
	git clone http://lab.jerasure.org/jerasure/gf-complete.git $@

$(GF)/Makefile: $(GF)
	cd $^ && ./autogen.sh && ./configure

$(LIBDIR)/libgf_complete.so: $(GF)/Makefile
	$(MAKE) -C $(GF) && sudo $(MAKE) -C $(GF) install

$(JERASURE):
	git clone http://lab.jerasure.org/jerasure/jerasure.git $@

$(JERASURE)/Makefile: $(JERASURE)
	cd $^ && autoreconf --force --install -I m4 && ./configure

$(LIBDIR)/libJerasure.so: $(JERASURE)/Makefile
	$(MAKE) -C $(JERASURE) && sudo $(MAKE) -C $(JERASURE) install

$(LIBERAS):
	git clone https://bitbucket.org/tsg-/liberasurecode.git $@

$(LIBERAS)/Makefile: $(LIBERAS)
	cd $^ && ./autogen.sh && ./configure

$(LIBDIR)/liberasurecode.so: $(LIBERAS)/Makefile
	$(MAKE) -C $(LIBERAS) && $(MAKE) -C $(LIBERAS) test \
		&& sudo $(MAKE) -C $(LIBERAS) install

clean:
	$(RM) $(TARGET)

distclean: clean
	$(RM) -r $(GF) $(JERASURE) $(LIBERAS)
	sudo $(RM) $(DEPS)<commit_msg>fix(npm): makefile doesn't relink anymore<commit_after>TARGET		= build/Release/node-eclib.node
GF			= gf_complete
JERASURE	= Jerasure
LIBERAS		= erasurecode

LIBDIR		= /usr/local/lib
LIBS		= $(addsuffix .so, $(GF) $(JERASURE) $(LIBERAS))
DEPS		= $(addprefix $(LIBDIR)/lib, $(LIBS))


all: $(TARGET)

$(TARGET): $(DEPS)
	sudo npm install -g node-gyp

$(GF):
	git clone http://lab.jerasure.org/jerasure/gf-complete.git $@

$(GF)/Makefile: | $(GF)
	cd $(GF) && ./autogen.sh && ./configure

$(LIBDIR)/libgf_complete.so: $(GF)/Makefile
	$(MAKE) -C $(GF) && sudo $(MAKE) -C $(GF) install

$(JERASURE):
	git clone http://lab.jerasure.org/jerasure/jerasure.git $@

$(JERASURE)/Makefile: | $(JERASURE)
	cd $(JERASURE) && autoreconf --force --install -I m4 && ./configure

$(LIBDIR)/libJerasure.so: $(JERASURE)/Makefile
	$(MAKE) -C $(JERASURE) && sudo $(MAKE) -C $(JERASURE) install

$(LIBERAS):
	git clone https://bitbucket.org/tsg-/liberasurecode.git $@

$(LIBERAS)/Makefile: | $(LIBERAS)
	cd $(LIBERAS) && ./autogen.sh && ./configure

$(LIBDIR)/liberasurecode.so: $(LIBERAS)/Makefile
	$(MAKE) -C $(LIBERAS) && $(MAKE) -C $(LIBERAS) test \
		&& sudo $(MAKE) -C $(LIBERAS) install

clean:
	$(RM) $(TARGET)

distclean: clean
	$(RM) -r $(GF) $(JERASURE) $(LIBERAS)
	sudo $(RM) $(DEPS)
{'fraction_non_alphanumeric': 0.22231139646869985, 'fraction_numerical': 0.0008025682182985554, 'mean_word_length': 4.150826446280992, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5050900', 'n_tokens_mistral': 1084, 'n_tokens_neox': 1029, 'n_words': 220}