<commit_before>IDIR        := .
CC          := gcc
CFLAGS      := -I$(IDIR) -g	-Wall
BINDIR      := ../build
LIBDIR      := ../lib
HEADERDIR   := ../include/genekit
LIBNAME     := libgenekit.a
KERNELDIR   := kernels

INSTALLDEP  := /usr/local/include/genekit
INSTALLLIB  := /usr/local/lib

FILES       := $(wildcard *.c) $(wildcard $(KERNELDIR)/*.c)
DEPS        := $(patsubst %.c,%.h,$(FILES)) rand.h
HEADERS     := $(patsubst %.h,$(HEADERDIR)/%.h,$(DEPS))
OBJS        := $(patsubst %.c,$(BINDIR)/%.o,$(FILES))

OSNAME      := $(shell uname -s 2>/dev/null | tr [:lower:] [:upper:])
ISLINUX     := $(strip $(findstring LINUX, $(OSNAME)))

ifneq ($(LINUX),)
  CFLAGS += -lm
endif

$(LIBDIR)/$(LIBNAME) : $(OBJS) $(HEADERS)
	ar rcs $@ $^

$(HEADERDIR)/%.h : %.h
	@mkdir -p $(HEADERDIR)
	@mkdir -p $(HEADERDIR)/$(KERNELDIR)
	cp $< $@  

$(BINDIR)/%.o : %.c $(DEPS)
	@mkdir -p $(LIBDIR)
	@mkdir -p $(BINDIR)
	@mkdir -p $(BINDIR)/$(KERNELDIR)
	$(CC) -c -o $@ $< $(CFLAGS)

install: $(LIBDIR)/$(LIBNAME)
	@mkdir -p $(INSTALLDEP)
	cp $(LIBDIR)/$(LIBNAME) $(INSTALLLIB)
	cp -r $(HEADERDIR)/  $(INSTALLDEP)

clean: 
	rm $(BINDIR)/*.o $(BINDIR)/$(KERNELDIR)/*.o $(LIBDIR)/*.a $(HEADERDIR)/*.h $(HEADERDIR)/$(KERNELDIR)/*.h

<commit_msg>Fixed libgenekit.a target in Makefile<commit_after>IDIR        := .
CC          := gcc
CFLAGS      := -I$(IDIR) -g	-Wall
BINDIR      := ../build
LIBDIR      := ../lib
HEADERDIR   := ../include/genekit
LIBNAME     := libgenekit.a
KERNELDIR   := kernels

INSTALLDEP  := /usr/local/include/genekit
INSTALLLIB  := /usr/local/lib

FILES       := $(wildcard *.c) $(wildcard $(KERNELDIR)/*.c)
DEPS        := $(patsubst %.c,%.h,$(FILES)) rand.h
HEADERS     := $(patsubst %.h,$(HEADERDIR)/%.h,$(DEPS))
OBJS        := $(patsubst %.c,$(BINDIR)/%.o,$(FILES))

OSNAME      := $(shell uname -s 2>/dev/null | tr [:lower:] [:upper:])
ISLINUX     := $(strip $(findstring LINUX, $(OSNAME)))

ifneq ($(LINUX),)
  CFLAGS += -lm
endif

$(LIBDIR)/$(LIBNAME) : $(OBJS) $(HEADERS) 
	ar rcs $@ $(OBJS) 

$(HEADERDIR)/%.h : %.h
	@mkdir -p $(HEADERDIR)
	@mkdir -p $(HEADERDIR)/$(KERNELDIR)
	cp $< $@  

$(BINDIR)/%.o : %.c $(DEPS)
	@mkdir -p $(LIBDIR)
	@mkdir -p $(BINDIR)
	@mkdir -p $(BINDIR)/$(KERNELDIR)
	$(CC) -c -o $@ $< $(CFLAGS)

install: $(LIBDIR)/$(LIBNAME)
	@mkdir -p $(INSTALLDEP)
	cp $(LIBDIR)/$(LIBNAME) $(INSTALLLIB)
	cp -r $(HEADERDIR)/  $(INSTALLDEP)

clean: 
	rm $(BINDIR)/*.o $(BINDIR)/$(KERNELDIR)/*.o $(LIBDIR)/*.a $(HEADERDIR)/*.h $(HEADERDIR)/$(KERNELDIR)/*.h


{'fraction_non_alphanumeric': 0.2523176138653769, 'fraction_numerical': 0.0008061265618702137, 'mean_word_length': 3.029220779220779, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6457815', 'n_tokens_mistral': 1073, 'n_tokens_neox': 1006, 'n_words': 211}