<commit_before>LIBATEST_SOURCES=src/atest.c
LIBATCHECK_SOURCES=src/atallocf.c src/atcheck.c

LIBATEST_OBJS=$(LIBATEST_SOURCES:src/%.c=build/%.o)
LIBATCHECK_OBJS=$(LIBATCHECK_SOURCES:src/%.c=build/%.o)

COMPILE_FLAGS=-pedantic -Wall $(CFLAGS)

.PHONY: all
all: dist/libatest.a dist/atest.h dist/libatcheck.a dist/atcheck.h


dist/libatest.a: $(LIBATEST_OBJS) dist
	ar rcs $@ $(LIBATEST_OBJS)


dist/atest.h: src/atest.h dist
	cp $< $@


dist/libatcheck.a: $(LIBATCHECK_OBJS) dist
	ar rcs $@ $(LIBATCHECK_OBJS)


dist/atcheck.h: src/atcheck.h
	cp $< $@


build/%.o: src/%.c build
	$(CC) -c $< -o $@ $(COMPILE_FLAGS)


dist:
	mkdir -p dist


build:
	mkdir -p build

<commit_msg>Fix bug on build running even without changes<commit_after>LIBATEST_SOURCES=src/atest.c
LIBATCHECK_SOURCES=src/atallocf.c src/atcheck.c

LIBATEST_OBJS=$(LIBATEST_SOURCES:src/%.c=build/%.o)
LIBATCHECK_OBJS=$(LIBATCHECK_SOURCES:src/%.c=build/%.o)

COMPILE_FLAGS=-pedantic -Wall $(CFLAGS)

.PHONY: all
all: dist build dist/libatest.a dist/atest.h dist/libatcheck.a dist/atcheck.h


dist/libatest.a: $(LIBATEST_OBJS)
	ar rcs $@ $(LIBATEST_OBJS)


dist/atest.h: src/atest.h
	cp $< $@


dist/libatcheck.a: $(LIBATCHECK_OBJS)
	ar rcs $@ $(LIBATCHECK_OBJS)


dist/atcheck.h: src/atcheck.h
	cp $< $@


build/%.o: src/%.c
	$(CC) -c $< -o $@ $(COMPILE_FLAGS)


dist:
	mkdir -p dist


build:
	mkdir -p build


{'fraction_non_alphanumeric': 0.16763848396501457, 'fraction_numerical': 0.0, 'mean_word_length': 4.280769230769231, 'pattern_counts': {'":': 0, '<': 9, '<?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': '7667920', 'n_tokens_mistral': 662, 'n_tokens_neox': 614, 'n_words': 103}