<commit_before>.PHONY: all clean docs install dist

VERSION = 1.0.0
CFLAGS  = -O5
LDFLAGS = -static
PREFIX  = /usr/local
BINDIR  = $(PREFIX)/bin
MANDIR  = $(PREFIX)/man/man1

all: jt

clean:
	rm -f jt jt.1 jt.1.html *.o *.a *.tar *.gz

libjsmn.a: jsmn.o
	$(AR) rc $@ $^

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

jt: jt.o libjsmn.a
	$(CC) $(LDFLAGS) $^ -o $@

%.1: %.1.ronn
	cat $^ |ronn -r --pipe > $@

%.1.html: %.1.ronn
	cat $^ |ronn -5 --pipe > $@

docs: jt.1 jt.1.html

install: jt jt.1
	mkdir -p $(BINDIR) $(MANDIR)
	cp jt $(BINDIR)
	cp jt.1 $(MANDIR)

jt-$(VERSION).tar: jt jt.1
	tar cf $@ --transform 's@^@bin/@' jt
	tar uf $@ --transform 's@^@man/man1/@' jt.1

jt-$(VERSION).tar.gz: jt-$(VERSION).tar
	gzip $^

dist: jt-$(VERSION).tar.gz
<commit_msg>tweak makefile<commit_after>.PHONY: all clean docs install dist

VERSION = 1.0.0
CFLAGS  = -O5
LDFLAGS = -static
PREFIX  = /usr/local
BINDIR  = $(PREFIX)/bin
MANDIR  = $(PREFIX)/man/man1

all: jt

clean:
	rm -f jt jt.1 jt.1.html *.o *.a *.tar *.gz

libjsmn.a: jsmn.o
	$(AR) rc $@ $^

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

jt: jt.o libjsmn.a
	$(CC) $(LDFLAGS) $^ -o $@

%.1: %.1.ronn
	cat $^ |ronn -r --pipe > $@

%.1.html: %.1.ronn
	cat $^ |ronn -5 --pipe > $@

docs: jt.1 jt.1.html

install: jt jt.1
	mkdir -p $(BINDIR) $(MANDIR)
	cp jt $(BINDIR)
	cp jt.1 $(MANDIR)

jt-$(VERSION).tar: jt jt.1
	tar cf $@ --transform 's@^@bin/@' jt
	tar uf $@ --transform 's@^@man/man1/@' jt.1

%.tar.gz: %.tar
	gzip $^

dist: jt-$(VERSION).tar.gz

{'fraction_non_alphanumeric': 0.24218230206254157, 'fraction_numerical': 0.025282767797737856, 'mean_word_length': 2.598086124401914, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5403526', 'n_tokens_mistral': 798, 'n_tokens_neox': 760, 'n_words': 187}