<commit_before>REBAR = $(shell pwd)/rebar3

.PHONY: deps rel package quick-test tree dist

uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_V6 := $(shell sh -c 'uname -v 2>/dev/null | cut -c-6 || echo not')


ifeq ($(uname_S),FreeBSD)
	PLATFORM = freebsd
endif
ifeq ($(uname_V6),joyent)
	PLATFORM = smartos
endif

include fifo.mk

apps/fifo_zlogin/priv/runpty: utils/runpty.c
	gcc utils/runpty.c -o apps/fifo_zlogin/priv/runpty

version:
	@echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > fifo_zlogin.version

version_header: version
	@echo "-define(VERSION, <<\"$(shell cat fifo_zlogin.version)\">>)." > apps/fifo_zlogin/src/fifo_zlogin_version.hrl

dist: ${PLATFORM} ;

package: rel
	make -C rel/pkg package

freebsd: update ${PLATFORM}/rel
	gmake -C rel/pkgng package

freebsd/rel: apps/fifo_zlogin/priv/runpty version_header
	$(REBAR) as prod release

smartos: update ${PLATFORM}/rel
	make -C rel/bootstrap bootstrap

smartos/rel: apps/fifo_zlogin/priv/runpty version_header compile
	-rm -r ./rel/fifo_zlogin/share
	$(REBAR) as prod release


clean:
	$(REBAR) clean
	make -C rel/bootstrap clean
	make -C rel/pkgng clean<commit_msg>use CC instead of gcc<commit_after>REBAR = $(shell pwd)/rebar3

.PHONY: deps rel package quick-test tree dist

uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
uname_V6 := $(shell sh -c 'uname -v 2>/dev/null | cut -c-6 || echo not')


ifeq ($(uname_S),FreeBSD)
	PLATFORM = freebsd
endif
ifeq ($(uname_V6),joyent)
	PLATFORM = smartos
endif

include fifo.mk

apps/fifo_zlogin/priv/runpty: utils/runpty.c
	${CC} utils/runpty.c -o apps/fifo_zlogin/priv/runpty

version:
	@echo "$(shell git symbolic-ref HEAD 2> /dev/null | cut -b 12-)-$(shell git log --pretty=format:'%h, %ad' -1)" > fifo_zlogin.version

version_header: version
	@echo "-define(VERSION, <<\"$(shell cat fifo_zlogin.version)\">>)." > apps/fifo_zlogin/src/fifo_zlogin_version.hrl

dist: ${PLATFORM} ;

package: rel
	make -C rel/pkg package

freebsd: update ${PLATFORM}/rel
	gmake -C rel/pkgng package

freebsd/rel: apps/fifo_zlogin/priv/runpty version_header
	$(REBAR) as prod release

smartos: update ${PLATFORM}/rel
	make -C rel/bootstrap bootstrap

smartos/rel: apps/fifo_zlogin/priv/runpty version_header compile
	-rm -r ./rel/fifo_zlogin/share
	$(REBAR) as prod release


clean:
	$(REBAR) clean
	make -C rel/bootstrap clean
	make -C rel/pkgng clean

{'fraction_non_alphanumeric': 0.14613180515759314, 'fraction_numerical': 0.008186655751125664, 'mean_word_length': 4.1344537815126055, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '543157', 'n_tokens_mistral': 1004, 'n_tokens_neox': 971, 'n_words': 251}