<commit_before>NAME = schedules-tools


all: help


help:
	@echo "Usage: make <target>"
	@echo
	@echo "Available targets are:"
	@echo " help                    show this text"
	@echo " clean                   remove python bytecode and temp files"
	@echo " install                 install program on current system"
	@echo " log                     prepare changelog for spec file"
	@echo " source                  create source tarball"


rpm: prebuild
	rpmbuild --define "dist .el7eso" -ba build/$(NAME).spec


rpm-copr: rpm
	devel-tools/copr.py ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm

rpm-brew: rpm
	brew build eso-rhel-7-candidate ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm 

copr: prebuild
	devel-tools/copr.py ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm

brew: prebuild
	brew build eso-rhel-7-candidate ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm 


prebuild: source
	$(eval version := $(shell cat build/version.txt))
	echo "%define version $(version)" > build/$(NAME).spec
	$(eval release := $(shell cat build/release.txt))
	echo "%define release $(release)" >> build/$(NAME).spec
	$(eval checkout := $(shell cat build/checkout.txt))
	echo "%define checkout $(checkout)" >> build/$(NAME).spec
	cat spec/$(NAME).spec.in >> build/$(NAME).spec
	@python scripts/rpm_log.py >> build/$(NAME).spec
	mkdir -p ~/rpmbuild/SOURCES
	cp dist/$(NAME)-$(version).tar.gz ~/rpmbuild/SOURCES


clean:
	@python setup.py clean
	rm -f MANIFEST build/$(NAME).spec
	find . -\( -name "*.pyc" -o -name '*.pyo' -o -name "*~" -\) -delete

install:
	@python setup.py install


log:
	@python scripts/rpm_log.py

source: clean
	mkdir -p build
	@python setup.py sdist
<commit_msg>Makefile: clean 'build' directory in 'clean' target<commit_after>NAME = schedules-tools


all: help


help:
	@echo "Usage: make <target>"
	@echo
	@echo "Available targets are:"
	@echo " help                    show this text"
	@echo " clean                   remove python bytecode and temp files"
	@echo " install                 install program on current system"
	@echo " log                     prepare changelog for spec file"
	@echo " source                  create source tarball"


rpm: prebuild
	rpmbuild --define "dist .el7eso" -ba build/$(NAME).spec


rpm-copr: rpm
	devel-tools/copr.py ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm

rpm-brew: rpm
	brew build eso-rhel-7-candidate ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm 

copr: prebuild
	devel-tools/copr.py ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm

brew: prebuild
	brew build eso-rhel-7-candidate ~/rpmbuild/SRPMS/$(NAME)-$(version)-$(release).$(checkout).el7eso.src.rpm 


prebuild: source
	$(eval version := $(shell cat build/version.txt))
	echo "%define version $(version)" > build/$(NAME).spec
	$(eval release := $(shell cat build/release.txt))
	echo "%define release $(release)" >> build/$(NAME).spec
	$(eval checkout := $(shell cat build/checkout.txt))
	echo "%define checkout $(checkout)" >> build/$(NAME).spec
	cat spec/$(NAME).spec.in >> build/$(NAME).spec
	@python scripts/rpm_log.py >> build/$(NAME).spec
	mkdir -p ~/rpmbuild/SOURCES
	cp dist/$(NAME)-$(version).tar.gz ~/rpmbuild/SOURCES


clean:
	@python setup.py clean
	rm -f MANIFEST build/$(NAME).spec
	rm -rf build
	mkdir -p build
	find . -\( -name "*.pyc" -o -name '*.pyo' -o -name "*~" -\) -delete

install:
	@python setup.py install


log:
	@python scripts/rpm_log.py

source: clean
	@python setup.py sdist

{'fraction_non_alphanumeric': 0.17035398230088494, 'fraction_numerical': 0.0038716814159292035, 'mean_word_length': 3.265330188679245, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '6353673', 'n_tokens_mistral': 1321, 'n_tokens_neox': 1254, 'n_words': 309}