<commit_before>MKDIR=/bin/mkdir
INSTALL=/usr/bin/install
PYTHON_SITE_DIR="/usr/lib/python2.7/site-packages/"
PYTHON=/usr/bin/python
WORK_DIR=$PWD
BIN=/usr/bin
PROJECT=ramldoc
CWD=cd
COPY=/usr/bin/cp
ITER=`(date +%Y%m%d%H%M%s)`
HOMEDIR=$(shell git rev-parse --show-toplevel)
VERSION=$(shell cat $(HOMEDIR)/RELEASE)
RM=/usr/bin/rm
RMDIR=/usr/bin/rmdir


yumrepo=/var/www/yumrepo/ramldoc/releases/$(VERSION)/

ROOT:=$(shell mktemp -d /tmp/$(PROJECT)_XXXXXXXXXX)

build:
	$(MKDIR) -p $(ROOT)$(PYTHON_SITE_DIR)
	cd python; $(PYTHON) setup.py install --root=$(ROOT); rm -rf build ; cd - ;

rpm:build
	set -x
	fpm -t rpm --version $(VERSION) --iteration $(ITER) -n ramldoc  --description 'Python module for raml documentation' -s dir -C $(ROOT) usr/<commit_msg>change rpm to buildrpm target<commit_after>MKDIR=/bin/mkdir
INSTALL=/usr/bin/install
PYTHON_SITE_DIR="/usr/lib/python2.7/site-packages/"
PYTHON=/usr/bin/python
WORK_DIR=$PWD
BIN=/usr/bin
PROJECT=ramldoc
CWD=cd
COPY=/usr/bin/cp
ITER=`(date +%Y%m%d%H%M%s)`
HOMEDIR=$(shell git rev-parse --show-toplevel)
VERSION=$(shell cat $(HOMEDIR)/RELEASE)
RM=/usr/bin/rm
RMDIR=/usr/bin/rmdir


yumrepo=/var/www/yumrepo/ramldoc/releases/$(VERSION)/

ROOT:=$(shell mktemp -d /tmp/$(PROJECT)_XXXXXXXXXX)

build:
	$(MKDIR) -p $(ROOT)$(PYTHON_SITE_DIR)
	cd python; $(PYTHON) setup.py install --root=$(ROOT); rm -rf build ; cd - ;

buildrpm:build
	set -x
	fpm -t rpm --version $(VERSION) --iteration $(ITER) -n ramldoc  --description 'Python module for raml documentation' -s dir -C $(ROOT) usr/
{'fraction_non_alphanumeric': 0.18835840418574232, 'fraction_numerical': 0.002616088947024199, 'mean_word_length': 4.645756457564576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '268504', 'n_tokens_mistral': 661, 'n_tokens_neox': 624, 'n_words': 127}