<commit_before>VERBOSITY ?= 1

BIN = cabal-dev/bin

LEVELDBDIR = `pwd`/leveldb
LIBLEVELDB = $(LEVELDBDIR)/libleveldb.a

LIBHSLEVELDB = dist/build/libHSleveldb-haskell-*.a
EXECUTABLES  = dist/test/test

HADDOCK = dist/doc/html/leveldb-haskell/*.html
HOOGLE  = dist/doc/html/leveldb-haskell/leveldb-haskell.txt

.PHONY: all test doc clean

all : $(LIBLEVELDB) $(LIBHSLEVELDB)

test : $(EXECUTABLES)
		$(BIN)/test

doc : $(HADDOCK) $(HOOGLE)

clean :
		rm -r dist/

$(LIBLEVELDB) :
		(cd leveldb && make && cd -)

$(HADDOCK) :
		runhaskell Setup.hs haddock --hyperlink-source

$(HOOGLE) :
		runhaskell Setup.hs haddock --hoogle

$(LIBHSLEVELDB) $(EXECUTABLES) :
		cabal-dev install \
--verbose=$(VERBOSITY) \
--extra-lib-dirs=$(LEVELDBDIR) \
--solver=modular \
--force-reinstalls<commit_msg>Improve Makefile<commit_after>VERBOSITY ?= 1

LEVELDBDIR = `pwd`/leveldb
LIBLEVELDB = $(LEVELDBDIR)/libleveldb.a

LIBHSLEVELDB = dist/build/*.a
EXECUTABLES  = dist/build/test/test

HADDOCK = dist/doc/html/leveldb-haskell/*.html
HOOGLE  = dist/doc/html/leveldb-haskell/leveldb-haskell.txt

.PHONY: all test doc clean

all : $(LIBHSLEVELDB)

test : $(EXECUTABLES)
		dist/build/test/test

doc : $(HADDOCK) $(HOOGLE)

clean :
		rm -rf dist/
		(cd leveldb && make clean)

$(LIBLEVELDB) :
		(cd leveldb && make)

$(HADDOCK) :
		runhaskell Setup.hs haddock --hyperlink-source

$(HOOGLE) :
		runhaskell Setup.hs haddock --hoogle

$(LIBHSLEVELDB) $(EXECUTABLES) : $(LIBLEVELDB)
		cabal-dev install \
--verbose=$(VERBOSITY) \
--extra-lib-dirs=$(LEVELDBDIR) \
--solver=modular \
--force-reinstalls
{'fraction_non_alphanumeric': 0.1613722998729352, 'fraction_numerical': 0.0012706480304955528, 'mean_word_length': 3.952830188679245, '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': '2024188', 'n_tokens_mistral': 687, 'n_tokens_neox': 649, 'n_words': 115}