<commit_before>.PHONY: all build install clean

PREFIX=/usr
DESTDIR=

override CONFIGURE_FLAGS=
ifdef LIB_PATH
override CONFIGURE_FLAGS+= --with-lib-path=$(LIB_PATH)
endif

ifdef SYSROOT
override CONFIGURE_FLAGS += --with-sysroot=$(SYSROOT)
endif

all: build

build: configure
	$(MAKE) -C build all

configure: prepare
	cd build && ../binutils-2.23/configure --prefix=$(PREFIX) $(CONFIGURE_FLAGS)
	@touch configure

prepare: binutils-2.23.tar.gz
	tar xzf binutils-2.23.tar.gz
	@mkdir build
	@touch prepare

binutils-2.23.tar.gz:
	wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.23.tar.gz

install: build
	$(MAKE) -C build install DESTDIR=$(DESTDIR)

clean:
	$(RM) prepare
	$(RM) configure
	$(RM) binutils-2.23.tar.gz
	$(RM) -r build/
	$(RM) -r binutils-2.23/

<commit_msg>Implemented support for WITHOUT_SHARED=yes in base/binutils<commit_after>.PHONY: all build install clean

PREFIX=/usr
DESTDIR=

override __configure_flags = 

ifdef LIB_PATH
override __configure_flags += --with-lib-path=$(LIB_PATH)
endif

ifdef SYSROOT
override __configure_flags += --with-sysroot=$(SYSROOT)
endif

ifeq ($(WITHOUT_SHARED),yes)
override __configure_flags += --disable-shared --enable-static
endif

override __configure_flags += $(CONFIGURE_FLAGS)

all: build

build: configure
	$(MAKE) -C build all

configure: prepare
	cd build && ../binutils-2.23/configure --prefix=$(PREFIX) \
		$(__configure_flags)
	@touch configure

prepare: binutils-2.23.tar.gz
	tar xzf binutils-2.23.tar.gz
	@mkdir build
	@touch prepare

binutils-2.23.tar.gz:
	wget ftp://ftp.gnu.org/gnu/binutils/binutils-2.23.tar.gz

install: build
	$(MAKE) -C build install DESTDIR=$(DESTDIR)

clean:
	$(RM) prepare
	$(RM) configure
	$(RM) binutils-2.23.tar.gz
	$(RM) -r build/
	$(RM) -r binutils-2.23/


{'fraction_non_alphanumeric': 0.14489446662863661, 'fraction_numerical': 0.023958927552766685, 'mean_word_length': 4.2990936555891235, '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': '2448458', 'n_tokens_mistral': 689, 'n_tokens_neox': 655, 'n_words': 155}