<commit_before># This Makefile is only intended to prepare for distribution the PyTables
# sources exported from a repository.  For building and installing PyTables,
# please use ``setup.py`` as described in the ``README.txt`` file.

VERSION = $(shell cat VERSION)
SVER = $(strip $(patsubst %pro, %, $(VERSION)))
SRCDIRS = src doc
LICENSES = personal site development
DEBFILES = debian/control debian/changelog debian/rules

GENERATED = ANNOUNCE.txt


.PHONY:		dist clean


dist:		$(GENERATED)
	for srcdir in $(SRCDIRS) ; do $(MAKE) -C $$srcdir $@ ; done
	for license in $(LICENSES) ; do \
	    cp LICENSE-$$license.txt LICENSE.txt ; \
	    for f in $(DEBFILES) ; do \
	        cat $$f.in | sed -e "s/@LICENSE@/$$license/g" > $$f ; \
                if [ $$f == "debian/rules" ] ; then \
	            chmod 755 $$f ; \
		fi ; \
	    done ; \
	    python setup.py sdist ; \
	    mv dist/tables-$(VERSION).tar.gz \
               dist/pytables-pro-$$license-$(SVER).tar.gz ; \
	done

clean:
	rm -rf LICENSE.txt MANIFEST build dist
	rm -f $(GENERATED) tables/*.so tables/numexpr/*.so
	find . '(' -name '*.py[co]' -o -name '*~' ')' -exec rm '{}' ';'
	for srcdir in $(SRCDIRS) ; do $(MAKE) -C $$srcdir $@ ; done

%:		%.in VERSION
	cat "$<" | sed -e 's/@VERSION@/$(VERSION)/g' > "$@"<commit_msg>Restored the original Makefile.  The debian packages for the different licenses will be done on a different script.<commit_after># This Makefile is only intended to prepare for distribution the PyTables
# sources exported from a repository.  For building and installing PyTables,
# please use ``setup.py`` as described in the ``README.txt`` file.

VERSION = $(shell cat VERSION)
SRCDIRS = src doc

GENERATED = ANNOUNCE.txt


.PHONY:		dist clean


dist:		$(GENERATED)
	for srcdir in $(SRCDIRS) ; do $(MAKE) -C $$srcdir $@ ; done

clean:
	rm -rf MANIFEST build dist
	rm -f $(GENERATED) tables/*.so tables/numexpr/*.so
	find . '(' -name '*.py[co]' -o -name '*~' ')' -exec rm '{}' ';'
	for srcdir in $(SRCDIRS) ; do $(MAKE) -C $$srcdir $@ ; done

%:		%.in VERSION
	cat "$<" | sed -e 's/@VERSION@/$(VERSION)/g' > "$@"
{'fraction_non_alphanumeric': 0.1661113755354593, 'fraction_numerical': 0.0014278914802475012, 'mean_word_length': 3.034548944337812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1472855', 'n_tokens_mistral': 774, 'n_tokens_neox': 745, 'n_words': 240}