<commit_before># Installation directories.
PREFIX ?= $(DESTDIR)/usr
SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig
PROFILEDIR ?= $(DESTDIR)/etc/profile.d
PYTHON ?= /usr/bin/python
PYLINT ?= /usr/bin/pylint

all: python-build docs

test:
	sh ./test.sh

python-build: atomic
	$(PYTHON) setup.py build
	$(PYLINT) -E --additional-builtins=_ *.py atomic Atomic tests/unit/*.py

MANPAGES_MD = $(wildcard docs/*.md)

docs/%.1: docs/%.1.md
	go-md2man -in $< -out $@.tmp && mv $@.tmp $@

docs: $(MANPAGES_MD:%.md=%)

clean:
	$(PYTHON) setup.py clean
	-rm -rf build *~ \#* *pyc .#* docs/*.1

install: all 
	$(PYTHON) setup.py install --install-scripts /usr/share/atomic `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`

	install -d -m 0755 $(DESTDIR)/usr/bin
	ln -fs ../share/atomic/atomic $(DESTDIR)/usr/bin/atomic

	[ -d $(SYSCONFDIR) ] || mkdir -p $(SYSCONFDIR)
	install -m 644 atomic.sysconfig $(SYSCONFDIR)/atomic

	[ -d $(PROFILEDIR) ] || mkdir -p $(PROFILEDIR)<commit_msg>Makefile: remove atomic target<commit_after># Installation directories.
PREFIX ?= $(DESTDIR)/usr
SYSCONFDIR ?= $(DESTDIR)/etc/sysconfig
PROFILEDIR ?= $(DESTDIR)/etc/profile.d
PYTHON ?= /usr/bin/python
PYLINT ?= /usr/bin/pylint

.PHONY: all
all: python-build docs

.PHONY: test
test:
	sh ./test.sh

.PHONY: python-build
python-build:
	$(PYTHON) setup.py build
	$(PYLINT) -E --additional-builtins=_ *.py atomic Atomic tests/unit/*.py

MANPAGES_MD = $(wildcard docs/*.md)

docs/%.1: docs/%.1.md
	go-md2man -in $< -out $@.tmp && mv $@.tmp $@

.PHONY: docs
docs: $(MANPAGES_MD:%.md=%)

.PHONY: clean
clean:
	$(PYTHON) setup.py clean
	-rm -rf build *~ \#* *pyc .#* docs/*.1

.PHONY: install
install: all 
	$(PYTHON) setup.py install --install-scripts /usr/share/atomic `test -n "$(DESTDIR)" && echo --root $(DESTDIR)`

	install -d -m 0755 $(DESTDIR)/usr/bin
	ln -fs ../share/atomic/atomic $(DESTDIR)/usr/bin/atomic

	[ -d $(SYSCONFDIR) ] || mkdir -p $(SYSCONFDIR)
	install -m 644 atomic.sysconfig $(SYSCONFDIR)/atomic

	[ -d $(PROFILEDIR) ] || mkdir -p $(PROFILEDIR)
{'fraction_non_alphanumeric': 0.1999010390895596, 'fraction_numerical': 0.010885700148441365, 'mean_word_length': 3.5954545454545452, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2285245', 'n_tokens_mistral': 874, 'n_tokens_neox': 849, 'n_words': 193}