<commit_before>#
# Copyright 2016-2017 <NAME> <<EMAIL>>
#
# Licensed under the MIT license.
#

PREFIX		:= /var/lib/mpkg
MPKGOPTS	:= --root $(ROOTDIR)

include tgz.mk

repo		?= local
local-uri	?= file://$(TGZDIR)/Index

$(ROOTDIR) $(ROOTDIR)/etc/mpkg/repo.d:
	mkdir -p $@

define do_repo =
$(ROOTDIR)/etc/mpkg/repo.d/$(1).conf: | $(ROOTDIR)/etc/mpkg/repo.d
	echo "$($(1)-uri)" >$$@

file-y	+= /etc/mpkg/repo.d/$(1).conf
file-y	+= $(PREFIX)/lists/$(1).conf
repo-y += $(ROOTDIR)/etc/mpkg/repo.d/$(1).conf
endef

$(foreach repo,$(repo),$(eval $(call do_repo,$(repo))))

MPKGEXIT_list-installed	?= false
MPKGEXIT_install	?= false
MPKGARGS_install	 = $(install-y)

.PHONY:
FORCE:

rootfs: mpkg_rootfs
ifneq (,$(rootfs-y))
mpkg_rootfs: $(repo-y) FORCE | $(ROOTDIR)
	echo -n "Initialize $(rootfs-y)... "
	if ! bash mpkg $(MPKGOPTS) $(EXTRA_MPKGOPTS) --update install $(rootfs-y); then \
		echo "Error: command has failed!" >&2; \
		false; \
	fi
	echo "done"
	echo
else
mpkg_rootfs: $(repo-y) FORCE | $(ROOTDIR)
	echo -n "Initialize (empty)... "
	if ! bash mpkg $(MPKGOPTS) $(EXTRA_MPKGOPTS) update; then \
		echo "Error: command has failed!" >&2; \
		false; \
	fi
	echo "done"
	echo
endif<commit_msg>tests: fix .PHONY of FORCE target<commit_after>#
# Copyright 2016-2017 <NAME> <<EMAIL>>
#
# Licensed under the MIT license.
#

PREFIX		:= /var/lib/mpkg
MPKGOPTS	:= --root $(ROOTDIR)

include tgz.mk

repo		?= local
local-uri	?= file://$(TGZDIR)/Index

$(ROOTDIR) $(ROOTDIR)/etc/mpkg/repo.d:
	mkdir -p $@

define do_repo =
$(ROOTDIR)/etc/mpkg/repo.d/$(1).conf: | $(ROOTDIR)/etc/mpkg/repo.d
	echo "$($(1)-uri)" >$$@

file-y	+= /etc/mpkg/repo.d/$(1).conf
file-y	+= $(PREFIX)/lists/$(1).conf
repo-y += $(ROOTDIR)/etc/mpkg/repo.d/$(1).conf
endef

$(foreach repo,$(repo),$(eval $(call do_repo,$(repo))))

MPKGEXIT_list-installed	?= false
MPKGEXIT_install	?= false
MPKGARGS_install	 = $(install-y)

.PHONY: FORCE
FORCE:

rootfs: mpkg_rootfs
ifneq (,$(rootfs-y))
mpkg_rootfs: $(repo-y) FORCE | $(ROOTDIR)
	echo -n "Initialize $(rootfs-y)... "
	if ! bash mpkg $(MPKGOPTS) $(EXTRA_MPKGOPTS) --update install $(rootfs-y); then \
		echo "Error: command has failed!" >&2; \
		false; \
	fi
	echo "done"
	echo
else
mpkg_rootfs: $(repo-y) FORCE | $(ROOTDIR)
	echo -n "Initialize (empty)... "
	if ! bash mpkg $(MPKGOPTS) $(EXTRA_MPKGOPTS) update; then \
		echo "Error: command has failed!" >&2; \
		false; \
	fi
	echo "done"
	echo
endif
{'fraction_non_alphanumeric': 0.2099585062240664, 'fraction_numerical': 0.012448132780082987, 'mean_word_length': 3.9004065040650406, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '565750', 'n_tokens_mistral': 1083, 'n_tokens_neox': 1030, 'n_words': 225}