<commit_before>NAME=dnsforwarder
VERSION := $(shell git rev-parse --short HEAD)_$(shell date '+%Y%m%d')

bootstrap:
	go get -u -v github.com/Masterminds/glide
	glide install

test:
	go test -v

build:
	gox -osarch="darwin/amd64 linux/amd64" -ldflags="-X main.version=${VERSION} -w -s"

clean:
	rm -rf dnsforwarder
	rm -rf dnsforwarder_*
	rm -rf *.deb *.rpm

package-bootstrap:
	sudo gem install fpm
	go get -u -v github.com/mitchellh/gox

deb: clean build
	fpm -s dir -t deb -n ${NAME} -v ${VERSION} ./dnsforwarder.yml=/etc/dnsforwarder.yml ./dnsforwarder_linux_amd64=/usr/bin/dnsforwarder

rpm: clean build
	fpm -s dir -t rpm -n ${NAME} -v ${VERSION} ./dnsforwarder.yml=/etc/dnsforwarder.yml ./dnsforwarder_linux_amd64=/usr/bin/dnsforwarder<commit_msg>Update install fpm without ri and rdoc.<commit_after>NAME=dnsforwarder
VERSION := $(shell git rev-parse --short HEAD)_$(shell date '+%Y%m%d')

bootstrap:
	go get -u -v github.com/Masterminds/glide
	glide install

test:
	go test -v

build:
	gox -osarch="darwin/amd64 linux/amd64" -ldflags="-X main.version=${VERSION} -w -s"

clean:
	rm -rf dnsforwarder
	rm -rf dnsforwarder_*
	rm -rf *.deb *.rpm

package-bootstrap:
	sudo gem install fpm --no-ri --no-rdoc
	go get -u -v github.com/mitchellh/gox

deb: clean build
	fpm -s dir -t deb -n ${NAME} -v ${VERSION} ./dnsforwarder.yml=/etc/dnsforwarder.yml ./dnsforwarder_linux_amd64=/usr/bin/dnsforwarder

rpm: clean build
	fpm -s dir -t rpm -n ${NAME} -v ${VERSION} ./dnsforwarder.yml=/etc/dnsforwarder.yml ./dnsforwarder_linux_amd64=/usr/bin/dnsforwarder
{'fraction_non_alphanumeric': 0.14903225806451612, 'fraction_numerical': 0.01032258064516129, 'mean_word_length': 3.787037037037037, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4339847', 'n_tokens_mistral': 664, 'n_tokens_neox': 613, 'n_words': 163}