<commit_before># credit: http://stackoverflow.com/questions/1484817/how-do-i-make-a-simple-makefile-gcc-unix

TARGETS = noop null
LIBS = -lm
CC = gcc
CFLAGS = -g -Wall

.PHONY: clean all default

default: $(TARGETS)
all: default

test: $(TARGETS)
	prove

OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

%.o: %.c $(HEADERS)
	$(CC) $(CFLAGS) -c $< -o $@

.PRECIOUS: $(TARGETS) $(OBJECTS)

$(TARGETS): $(OBJECTS)
	$(CC) $(OBJECTS) -Wall $(LIBS) -o $@

null: noop
	-cp noop null

clean:
	-rm -f *.o *~
	-rm -f $(TARGETS)<commit_msg>Ok, compiles clean now.<commit_after># credit: http://stackoverflow.com/questions/1484817/how-do-i-make-a-simple-makefile-gcc-unix

TARGETS = noop
DOUBLES = null
LIBS = -lm
CC = gcc
CFLAGS = -g -Wall

.PHONY: clean all default

default: $(TARGETS) $(DOUBLES)
all: default

test: $(TARGETS) $(DOUBLES)
	prove t/*.t

OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
HEADERS = $(wildcard *.h)

%.o: %.c $(HEADERS)
	$(CC) $(CFLAGS) -c $< -o $@

.PRECIOUS: $(TARGETS) $(OBJECTS)

$(TARGETS): $(OBJECTS)
	$(CC) $(OBJECTS) -Wall $(LIBS) -o $@

null: noop
	-ln noop null

clean:
	-rm -f *.o *~
	-rm -f $(TARGETS) $(DOUBLES)
{'fraction_non_alphanumeric': 0.21984602224123181, 'fraction_numerical': 0.011976047904191617, 'mean_word_length': 3.5525291828793772, 'pattern_counts': {'":': 0, '<': 5, '<?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': '577788', 'n_tokens_mistral': 544, 'n_tokens_neox': 512, 'n_words': 131}