<commit_before>ROOT ?= $(shell pwd)

all: vendor/nginx

clean:
	rm -rf $(ROOT)/src
	rm -rf $(ROOT)/vendor

vendor/luajit: src
	cd src/LuaJIT-2.0.2 																		\
	&& make PREFIX=$(ROOT)/vendor/luajit 										\
	&& make install PREFIX=$(ROOT)/vendor/luajit

vendor/nginx: vendor/luajit
	cd src/nginx-1.4.1 																			\
    && export 																						\
    	LUAJIT_LIB=$(ROOT)/vendor/luajit/lib 								\
    	LUAJIT_INC=$(ROOT)/vendor/luajit/include/luajit-2.0 \
    && ./configure 																				\
    	--prefix=$(ROOT)/vendor/nginx 											\
    	--add-module=$(ROOT)/src/ngx_devel_kit-0.2.18 			\
    	--add-module=$(ROOT)/src/lua-nginx-module-0.8.3 		\
    	--with-pcre=$(ROOT)/src/pcre-8.33										\
    && make install

src:
	mkdir -p $(ROOT)/src
	curl -Ls http://luajit.org/download/LuaJIT-2.0.2.tar.gz | tar xz -C src
	curl -Ls http://sourceforge.net/projects/pcre/files/pcre/8.33/pcre-8.33.tar.gz/download | tar xz -C src
	curl -Ls http://nginx.org/download/nginx-1.4.1.tar.gz | tar xz -C src
	curl -Ls https://github.com/simpl/ngx_devel_kit/archive/v0.2.18.tar.gz | tar xz -C src
	curl -Ls https://github.com/chaoslawful/lua-nginx-module/archive/v0.8.3.tar.gz | tar xz -C src<commit_msg>remove LuaJIT and lua-nginx from Makefile; whitespace<commit_after>ROOT ?= $(shell pwd)

all: vendor/nginx

clean:
	rm -rf $(ROOT)/src
	rm -rf $(ROOT)/vendor

vendor/nginx: src
	cd src/nginx-1.4.1                                    \
	&& ./configure                                        \
	  --prefix=$(ROOT)/vendor/nginx                       \
	  --with-pcre=$(ROOT)/src/pcre-8.33                   \
	&& make install

src:
	mkdir -p $(ROOT)/src
	curl -Ls http://sourceforge.net/projects/pcre/files/pcre/8.33/pcre-8.33.tar.gz/download | tar xz -C src
	curl -Ls http://nginx.org/download/nginx-1.4.1.tar.gz | tar xz -C src

{'fraction_non_alphanumeric': 0.16900647948164146, 'fraction_numerical': 0.028077753779697623, 'mean_word_length': 1.7906626506024097, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4357288', 'n_tokens_mistral': 834, 'n_tokens_neox': 744, 'n_words': 118}