<commit_before>#
# Sysinfo
#
# Copyright (c) 2017 <NAME>
#

#
# Please note that this Makefile only generates the c example.
#

IDIR = ./src/
CC = gcc
CFLAGS = -I$(IDIR)

ODIR = examples/src/
LDIR = ./target/debug/

LIBS = -lsysinfo

_DEPS = sysinfo.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = simple.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))


simple: $(OBJ)
	@echo "Compiling sources..."
	gcc -o $@ $^ $(CFLAGS) -L$(LDIR) $(LIBS)

rust:
	cargo build --features=c-interface

$(ODIR)/%.o: %.c rust $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

.PHONY: simple

clean:
	@echo "Cleaning mess"
	rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~<commit_msg>Improve Makefile<commit_after>#
# Sysinfo
#
# Copyright (c) 2017 <NAME>
#

#
# Please note that this Makefile only generates the c example.
#

IDIR = ./src/
CC = gcc
CFLAGS = -I$(IDIR)

ODIR = examples/src/
LDIR = ./target/debug/

LIBS = -lsysinfo

_DEPS = sysinfo.h
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = simple.o
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))


simple: $(OBJ)
	@echo "Compiling sources..."
	cargo build --features=c-interface
	gcc -o $@ $^ $(CFLAGS) -L$(LDIR) $(LIBS)

$(ODIR)/%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

.PHONY: simple

clean:
	@echo "Cleaning mess"
	rm -f $(ODIR)/*.o *~ core $(INCDIR)/*~
{'fraction_non_alphanumeric': 0.22845849802371543, 'fraction_numerical': 0.006324110671936759, 'mean_word_length': 3.4111498257839723, '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': '3531457', 'n_tokens_mistral': 586, 'n_tokens_neox': 552, 'n_words': 140}