<commit_before>CC = gcc
LD = -lm -lbsd -isystem src/crypto/ -lsqlite3
CFLAGS = -Wall -Wextra -g -O2 -std=c11

BUILD_DIR = ./build
SRC_DIR = ./src
BINARY_NAME = minimud
#EXCLUDES = crypto
EXCLUDES = 

SRCS = $(shell find $(SRC_DIR) -name *.c $(foreach exclude, $(EXCLUDES), -and -not -path "*$(exclude)*"))
OBJS = $(SRCS:%=$(BUILD_DIR)/%.o)
DEPS = $(OBJS:.o=.d)
INC_DIRS = $(shell find ./src -type d $(foreach exclude, $(EXCLUDES), -and -not -path "*$(exclude)*"))
MKDIR_P = mkdir -p -v

.PHONY: all clean # stops file name conflicts

$(BINARY_NAME): $(OBJS)
	$(CC) $(LD) $(CFLAGS) $(SRCS) -o $@

$(BUILD_DIR)/%.c.o: %.c # match via wildcard %
	@echo "Compiling $<"
	$(MKDIR_P) $(dir $@)
	$(CC) $(LD) $(CFLAGS) -c $< -o $@

clean:
	/bin/rm -v vgcore*
	/bin/rm -rv $(BUILD_DIR)
	/bin/rm -v $(BINARY_NAME)

-include $(DEPS)<commit_msg>Make rm in clean task ignore failures<commit_after>CC = gcc
LD = -lm -lbsd -isystem src/crypto/ -lsqlite3
CFLAGS = -Wall -Wextra -g -O2 -std=c11

BUILD_DIR = ./build
SRC_DIR = ./src
BINARY_NAME = minimud
#EXCLUDES = crypto
EXCLUDES = 

SRCS = $(shell find $(SRC_DIR) -name *.c $(foreach exclude, $(EXCLUDES), -and -not -path "*$(exclude)*"))
OBJS = $(SRCS:%=$(BUILD_DIR)/%.o)
DEPS = $(OBJS:.o=.d)
INC_DIRS = $(shell find ./src -type d $(foreach exclude, $(EXCLUDES), -and -not -path "*$(exclude)*"))
MKDIR_P = mkdir -p -v

.PHONY: all clean # stops file name conflicts

$(BINARY_NAME): $(OBJS)
	$(CC) $(LD) $(CFLAGS) $(SRCS) -o $@

$(BUILD_DIR)/%.c.o: %.c # match via wildcard %
	@echo "Compiling $<"
	$(MKDIR_P) $(dir $@)
	$(CC) $(LD) $(CFLAGS) -c $< -o $@

clean:
	/bin/rm -fv vgcore*
	/bin/rm -frv $(BUILD_DIR)
	/bin/rm -fv $(BINARY_NAME)

-include $(DEPS)
{'fraction_non_alphanumeric': 0.22590183323477234, 'fraction_numerical': 0.004730928444707274, 'mean_word_length': 3.560646900269542, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3641510', 'n_tokens_mistral': 754, 'n_tokens_neox': 712, 'n_words': 199}