<commit_before># project makefile

######################################################################
# BUILD

test:
	cabal test

install:
	cabal install

build:
	cabal build

# build automatically on file change, using sp
# (darcs get http://joyful.com/repos/searchpath, make it, add it to your PATH)
# flag(s) to work around ghc vs. macports issue on mac, if needed:
#PREFERMACUSRLIBFLAGS=-L/usr/lib
#BUILDFLAGS=-threaded -W -fwarn-tabs -Werror $(PREFERMACUSRLIBFLAGS)
# sp needs an executable:
AUTOBUILDEXE=fungentest
AUTOBUILDEXEARGS=tests
autobuild auto:
	sp --no-exts --no-default-map -o $(AUTOBUILDEXE) ghc --make $(BUILDFLAGS) $(AUTOBUILDEXE).hs --run $(AUTOBUILDEXEARGS)

######################################################################
# DOC

# called on each darcs commit
commithook: docs

docs: website haddock

# build haddock docs
haddock:
	cabal configure && cabal haddock #--executables<commit_msg>provide more help for make auto<commit_after># project makefile

######################################################################
# BUILD

test:
	cabal test

install:
	cabal install

build:
	cabal build

# build automatically on file change using sp
# flag(s) to work around ghc vs. macports issue on mac, if needed:
#PREFERMACUSRLIBFLAGS=-L/usr/lib
#BUILDFLAGS=-threaded -W -fwarn-tabs -Werror $(PREFERMACUSRLIBFLAGS)
# sp needs an executable:
AUTOBUILDEXE=fungentest
AUTOBUILDEXEARGS=tests
autobuild auto:
	@echo "auto-building with sp (if this fails, do make sp)"
	sp --no-exts --no-default-map -o $(AUTOBUILDEXE) ghc --make $(BUILDFLAGS) $(AUTOBUILDEXE).hs --run $(AUTOBUILDEXEARGS)

sp:
	@echo "To install sp:"
	@echo "darcs get http://joyful.com/repos/searchpath,"
	@echo "cd searchpath, make, add the sp executable to your PATH"

######################################################################
# DOC

# called on each darcs commit
commithook: docs

docs: website haddock

# build haddock docs
haddock:
	cabal configure && cabal haddock #--executables
{'fraction_non_alphanumeric': 0.23119358074222668, 'fraction_numerical': 0.0, 'mean_word_length': 5.414790996784566, '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': '6040447', 'n_tokens_mistral': 663, 'n_tokens_neox': 646, 'n_words': 198}