<commit_before>.PHONY: build docker vagrant
.DEFAULT_GOAL := build

guard-%:
	@if [ "${${*}}" == "" ]; then echo -e "\nERROR: variable $* not set\n" && exit 1; fi

build/vagrant/trusty64_virtualbox.box:
	@packer build -only=virtualbox-iso src/packer.json

build/vagrant/trusty64_libvirt.box:
	@packer build -only=qemu src/packer.json

build/vagrant/trusty64_docker.box:
	@packer build -only=docker src/packer.json

build/docker/rootfs.tar.xz:
	@sudo ./src/mkimage-docker.sh

build: build/docker/rootfs.tar.xz
	@packer	build -parallel=false src/packer.json

docker: build/docker/rootfs.tar.xz guard-VERSION
	@docker build -t iknite/trusty64:${VERSION} build/docker

vagrant:
	@cd build/vagrant && vagrant box add metadata.json<commit_msg>fix unneded rebuild on partial loads<commit_after>.PHONY: build docker vagrant
.DEFAULT_GOAL := build

guard-%:
	@if [ "${${*}}" == "" ]; then echo -e "\nERROR: variable $* not set\n" && exit 1; fi

build/vagrant/trusty64_virtualbox.box:
	@packer build -only=virtualbox-iso src/packer.json

build/vagrant/trusty64_libvirt.box:
	@packer build -only=qemu src/packer.json

build/vagrant/trusty64_docker.box:
	@packer build -only=docker src/packer.json

build/docker/rootfs.tar.xz:
	@sudo ./src/mkimage-docker.sh

build:  build/docker/rootfs.tar.xz \
	build/vagrant/trusty64_virtualbox.box \
	build/vagrant/trusty64_libvirt.box

docker: build/docker/rootfs.tar.xz guard-VERSION
	@docker build -t iknite/trusty64:${VERSION} build/docker

vagrant:
	@cd build/vagrant && vagrant box add metadata.json
{'fraction_non_alphanumeric': 0.14313725490196078, 'fraction_numerical': 0.01437908496732026, 'mean_word_length': 4.527075812274369, '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': '5332986', 'n_tokens_mistral': 643, 'n_tokens_neox': 591, 'n_words': 116}