<commit_before># Copyright (c) 2004 <NAME> - http://www.cse.unsw.edu.au/~dons
# LGPL version 2.1 or later (see http://www.gnu.org/copyleft/lesser.html)

# cut down reimplementation of $fptools/mk directory

.PHONY: build all

all: build EvalHaskell.h

build::
	cd src && $(MAKE)
	@find src -name depend -exec rm {} \;
	@#cd src && $(MAKE) way=p

EvalHaskell.h: build
	cp src/eval/Eval/Haskell_stub.h $@

#
# installing
#

# TODO put these in subdirs
install:
	$(INSTALL_DATA_DIR) $(LIBDIR)/include
	$(INSTALL_DATA) EvalHaskell.h $(LIBDIR)/include
	@(cd src && $(MAKE) install && $(MAKE) install way=p)

#
# and register the library with ghc package system
# Use this target if installing by hand. May need to be performed as root
#
register:<commit_msg>Don't try to install profiled libs (pointed out by <NAME>)<commit_after># Copyright (c) 2004 <NAME> - http://www.cse.unsw.edu.au/~dons
# LGPL version 2.1 or later (see http://www.gnu.org/copyleft/lesser.html)

# cut down reimplementation of $fptools/mk directory

.PHONY: build all

all: build EvalHaskell.h

build::
	cd src && $(MAKE)
	@find src -name depend -exec rm {} \;
	@#cd src && $(MAKE) way=p

EvalHaskell.h: build
	cp src/eval/Eval/Haskell_stub.h $@

#
# installing
#

# TODO put these in subdirs
install:
	$(INSTALL_DATA_DIR) $(LIBDIR)/include
	$(INSTALL_DATA) EvalHaskell.h $(LIBDIR)/include
	@(cd src && $(MAKE) install)

#
# and register the library with ghc package system
# Use this target if installing by hand. May need to be performed as root
#
register:
{'fraction_non_alphanumeric': 0.13958060288335516, 'fraction_numerical': 0.007863695937090432, 'mean_word_length': 4.056291390728477, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '428768', 'n_tokens_mistral': 585, 'n_tokens_neox': 544, 'n_words': 175}