<commit_before>package = algo.c
version = 0.0.2
tarname = $(package)
distdir = $(tarname)-$(version)

all:
	cd src && $(MAKE) $@

test:
	cd src && $(MAKE) $@

clean:
	-rm *~ *.log test/*
	cd src && $(MAKE) $@

distclean: clean FORCE
	-rm -rf lib test
	cd src && $(MAKE) $@


dist: $(distdir).tar.gz

$(distdir).tar.gz: $(distdir)
	tar chof - $(distdir) | gzip -9 -c > $@
	rm -rf $(distdir)

$(distdir): FORCE distclean
	mkdir -p lib
	mkdir -p $(distdir)
	cp -r lib $(distdir)
	cp -r src $(distdir)
	cp  Makefile $(distdir)
	cp  algorithms.* $(distdir)

distcheck: $(distdir).tar.gz
	gzip -cd $(distdir).tar.gz | tar xvf -
	cd $(distdir) && $(MAKE) all
	cd $(distdir) && $(MAKE) clean
	rm -rf $(distdir)
	@echo "*** Package $(distdir).tar.gz is ready for distribution."

install:
	cp lib/lib$(package).a /usr/local/lib
	cp headers /usr/local/include/$(package)

FORCE:
	-rm $(distdir).tar.gz > /dev/null 2>&1
	-rm -rf $(distdir) > /dev/null 2>&1


.PHONY: FORCE all clean dist<commit_msg>Fix make install to copy headers correctly.<commit_after>package = algo.c
version = 0.0.2
tarname = $(package)
distdir = $(tarname)-$(version)

all:
	cd src && $(MAKE) $@

test:
	cd src && $(MAKE) $@

clean:
	-rm *~ *.log test/*
	cd src && $(MAKE) $@

distclean: clean FORCE
	-rm -rf lib test
	cd src && $(MAKE) $@


dist: $(distdir).tar.gz

$(distdir).tar.gz: $(distdir)
	tar chof - $(distdir) | gzip -9 -c > $@
	rm -rf $(distdir)

$(distdir): FORCE distclean
	mkdir -p lib
	mkdir -p $(distdir)
	cp -r lib $(distdir)
	cp -r src $(distdir)
	cp  Makefile $(distdir)
	cp  algorithms.* $(distdir)

distcheck: $(distdir).tar.gz
	gzip -cd $(distdir).tar.gz | tar xvf -
	cd $(distdir) && $(MAKE) all
	cd $(distdir) && $(MAKE) clean
	rm -rf $(distdir)
	@echo "*** Package $(distdir).tar.gz is ready for distribution."

install:
	cp lib/lib$(package).a /usr/local/lib
	cp -r headers /usr/local/include/$(package)

FORCE:
	-rm $(distdir).tar.gz > /dev/null 2>&1
	-rm -rf $(distdir) > /dev/null 2>&1


.PHONY: FORCE all clean dist
{'fraction_non_alphanumeric': 0.2012954658694569, 'fraction_numerical': 0.007972097658196313, 'mean_word_length': 3.3090128755364807, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '4161842', 'n_tokens_mistral': 849, 'n_tokens_neox': 812, 'n_words': 238}