<commit_before>hx_git_hash != git rev-parse --verify HEAD --short=12
hx_version != git describe --tags 2>/dev/null || echo "1.0.0"

CPPFLAGS = -DNDEBUG -DHX_GIT_HASH=\"$(hx_git_hash)\" -DHX_VERSION=\"$(hx_version)\"
CPPFLAGS += -D__BSD_VISIBLE # SIGWINCH on FreeBSD.
CFLAGS = -std=c99 -Wall -Wextra -Wpedantic -O3 -MMD -MP
LDFLAGS = -O3

objects := hx.o editor.o charbuf.o util.o undo.o

PREFIX ?= /usr/local
bindir = /bin
mandir = /man

%.gz: %
	gzip -k $<

all: hx hx.1.gz
hx: $(objects)

debug: all
debug: CFLAGS += -ggdb -Og
debug: LDFLAGS += -ggdb -Og

install: all
	install -Dm755 -s ./hx -t $(DESTDIR)$(PREFIX)$(bindir)
	install -Dm644 ./hx.1.gz -t $(DESTDIR)$(PREFIX)$(mandir)/man1

clean:
	$(RM) $(objects) $(objects:.o=.d) hx.1.gz hx

-include $(objects:.o=.d)<commit_msg>-Wpedantic unrecognized on some older gcc compilers<commit_after>hx_git_hash != git rev-parse --verify HEAD --short=12
hx_version != git describe --tags 2>/dev/null || echo "1.0.0"

CPPFLAGS = -DNDEBUG -DHX_GIT_HASH=\"$(hx_git_hash)\" -DHX_VERSION=\"$(hx_version)\"
CPPFLAGS += -D__BSD_VISIBLE # SIGWINCH on FreeBSD.
CFLAGS = -std=c99 -Wall -Wextra -pedantic -O3 -MMD -MP
LDFLAGS = -O3

objects := hx.o editor.o charbuf.o util.o undo.o

PREFIX ?= /usr/local
bindir = /bin
mandir = /man

%.gz: %
	gzip -k $<

all: hx hx.1.gz
hx: $(objects)

debug: all
debug: CFLAGS += -ggdb -Og
debug: LDFLAGS += -ggdb -Og

install: all
	install -Dm755 -s ./hx -t $(DESTDIR)$(PREFIX)$(bindir)
	install -Dm644 ./hx.1.gz -t $(DESTDIR)$(PREFIX)$(mandir)/man1

clean:
	$(RM) $(objects) $(objects:.o=.d) hx.1.gz hx

-include $(objects:.o=.d)
{'fraction_non_alphanumeric': 0.1942535915053092, 'fraction_numerical': 0.024984384759525295, 'mean_word_length': 3.474860335195531, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5839103', 'n_tokens_mistral': 741, 'n_tokens_neox': 698, 'n_words': 171}