<commit_before>
PP=..
include $(PP)/Makefile.platform


ifeq ("$(OS)", "CYGWIN_NT")
# Win32
CC=cl /c
LB = lib
LIBFLAGS = /NOLOGO
LIBOUT = /OUT:
LIB_EXT = .lib
else
# UNIX
CC=gcc
LB = ar
LIBFLAGS = rcs
LIBOUT = 
OBJ_EXT = .o
LIB_EXT = .a
endif


ifdef SUB_PLATFORM

BIN_LIBS=bin/$(PLATFORM)_$(SUB_PLATFORM)

else

BIN_LIBS=bin/$(PLATFORM)

endif

build_chicken=yes
build_pccts=yes
build_expat=yes
build_pcre=yes

.PHONY: default build clean


default: build


ifeq ("$(build_chicken)", "yes")

.PHONY: build_chicken clean_chicken
BUILD_DEPS += build_chicken
CLEAN_DEPS += clean_chicken

BIN_CHICKEN= $(shell if test -d $(BIN_LIBS)/chicken; then echo 1; else echo 0; fi)

ifeq ("$(BIN_CHICKEN)", "1")

chicken/chicken.h: $(BIN_LIBS)/chicken
	cp -pR $(BIN_LIBS)/chicken .
	touch chicken/chicken.h
	-chmod a+x chicken/chicken


build_chicken: chicken/chicken.h

else

CHICKEN_VERSION=2.2

chicken/chicken.h: chicken-$(CHICKEN_VERSION).tar.gz
	gzip -dc chicken-$(CHICKEN_VERSION).tar.gz | tar xvf -
	mv chicken-$(CHICKEN_VERSION) chicken

ifeq ("$(PLATFORM)", "WIN32")

build_chicken: chicken/chicken.h
	cd chicken; \
	MAKEFLAGS=; \
	nmake /f ../chicken.mak

clean_chicken:
	cd chicken; \
	MAKEFLAGS=; \
	nmake /f ../chicken.mak clean

else

chicken/configure: chicken/chicken.h<commit_msg>libs Makefile fix (chicken make bug after make clean)<commit_after>
PP=..
include $(PP)/Makefile.platform


ifeq ("$(OS)", "CYGWIN_NT")
# Win32
CC=cl /c
LB = lib
LIBFLAGS = /NOLOGO
LIBOUT = /OUT:
LIB_EXT = .lib
else
# UNIX
CC=gcc
LB = ar
LIBFLAGS = rcs
LIBOUT = 
OBJ_EXT = .o
LIB_EXT = .a
endif


ifdef SUB_PLATFORM

BIN_LIBS=bin/$(PLATFORM)_$(SUB_PLATFORM)

else

BIN_LIBS=bin/$(PLATFORM)

endif

build_chicken=yes
build_pccts=yes
build_expat=yes
build_pcre=yes

.PHONY: default build clean


default: build


ifeq ("$(build_chicken)", "yes")

.PHONY: build_chicken clean_chicken
BUILD_DEPS += build_chicken
CLEAN_DEPS += clean_chicken

BIN_CHICKEN= $(shell if test -d $(BIN_LIBS)/chicken; then echo 1; else echo 0; fi)

ifeq ("$(BIN_CHICKEN)", "1")

chicken/chicken.h: $(BIN_LIBS)/chicken
	cp -pR $(BIN_LIBS)/chicken .
	touch chicken/chicken.h
	-chmod a+x chicken/chicken


build_chicken: chicken/chicken.h

else

CHICKEN_VERSION=2.2

chicken/chicken.h: chicken-$(CHICKEN_VERSION).tar.gz
	gzip -dc chicken-$(CHICKEN_VERSION).tar.gz | tar xvf -
	touch chicken-$(CHICKEN_VERSION)/chicken.h
	rm -rf chicken
	mv chicken-$(CHICKEN_VERSION) chicken

ifeq ("$(PLATFORM)", "WIN32")

build_chicken: chicken/chicken.h
	cd chicken; \
	MAKEFLAGS=; \
	nmake /f ../chicken.mak

clean_chicken:
	cd chicken; \
	MAKEFLAGS=; \
	nmake /f ../chicken.mak clean

else

chicken/configure: chicken/chicken.h
{'fraction_non_alphanumeric': 0.1397003745318352, 'fraction_numerical': 0.006741573033707865, 'mean_word_length': 4.406882591093117, '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': '3894506', 'n_tokens_mistral': 1164, 'n_tokens_neox': 1121, 'n_words': 250}