<commit_before>.PHONEY: test

CC       ?=
CFLAGS   += -pedantic -W -Wall -Werror -Wextra -std=c11
CPPFLAGS += -Isrc
LIB       = src/libbufrw.a
LIB_SRC   = $(wildcard src/*.c)
LIB_OBJ   = $(patsubst %.c,%.o,$(LIB_SRC))
TESTER    = tests/tester
TEST_SRC  = $(wildcard tests/*.c)
TEST_OBJ  = $(patsubst %.c,%.o,$(TEST_SRC))

all: $(TESTER)

$(LIB): $(LIB_OBJ)
	ar rcs $@ $^

src/libbufrw.a: $(LIB_OBJ)

$(TESTER): $(TEST_OBJ) $(LIB)
	$(CC) -o $(TESTER) $(TEST_OBJ) $(LIB_OBJ)

test: $(TESTER)
	$(TESTER)<commit_msg>Makefile: Add target 'clean'<commit_after>.PHONEY: test

CC       ?=
CFLAGS   += -pedantic -W -Wall -Werror -Wextra -std=c11
CPPFLAGS += -Isrc
LIB       = src/libbufrw.a
LIB_SRC   = $(wildcard src/*.c)
LIB_OBJ   = $(patsubst %.c,%.o,$(LIB_SRC))
TESTER    = tests/tester
TEST_SRC  = $(wildcard tests/*.c)
TEST_OBJ  = $(patsubst %.c,%.o,$(TEST_SRC))

all: $(TESTER)

$(LIB): $(LIB_OBJ)
	ar rcs $@ $^

src/libbufrw.a: $(LIB_OBJ)

$(TESTER): $(TEST_OBJ) $(LIB)
	$(CC) -o $(TESTER) $(TEST_OBJ) $(LIB_OBJ)

test: $(TESTER)
	$(TESTER)

clean:
	rm -f $(LIB_OBJ)
	rm -f $(TEST_OBJ)
	rm -f $(LIB)
{'fraction_non_alphanumeric': 0.22404371584699453, 'fraction_numerical': 0.0036429872495446266, 'mean_word_length': 3.522633744855967, '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': '2152444', 'n_tokens_mistral': 530, 'n_tokens_neox': 504, 'n_words': 106}