<commit_before>DESTDIR=/usr/local
CFLAGS=-g -Wall
LIBDL=$(shell [ -e /lib/libdl.so.2 ] && echo '-ldl' )

all: luminescence

luminescence: luminescence.c luminescence.h
	gcc -o luminescence luminescence.c $(CFLAGS) $(LIBDL) `pkg-config --cflags --libs gtk+-3.0 webkitgtk-3.0 gthread-2.0`

clean:
	rm -f luminescence

install: luminescence
	mkdir -p $(DESTDIR)/{bin,include,src/luminescence/plugins}
	install -m 755 luminescence luminescence-install $(DESTDIR)/bin
	install -m 644 luminescence.h $(DESTDIR)/include
	install -m 644 plugins/*.c $(DESTDIR)/src/luminescence/plugins
<commit_msg>make uninstall. suggested by kisom<commit_after>DESTDIR=/usr/local
CFLAGS=-g -Wall
LIBDL=$(shell [ -e /lib/libdl.so.2 ] && echo '-ldl' )

all: luminescence

luminescence: luminescence.c luminescence.h
	gcc -o luminescence luminescence.c $(CFLAGS) $(LIBDL) `pkg-config --cflags --libs gtk+-3.0 webkitgtk-3.0 gthread-2.0`

clean:
	rm -f luminescence

install: luminescence
	mkdir -p $(DESTDIR)/{bin,include,src/luminescence/plugins}
	install -m 755 luminescence luminescence-install $(DESTDIR)/bin
	install -m 644 luminescence.h $(DESTDIR)/include
	install -m 644 plugins/*.c $(DESTDIR)/src/luminescence/plugins

uninstall:
	rm -rf $(DESTDIR)/src/luminescence
	rm -f $(DESTDIR)/bin/luminescence{,-install}
	rm -f $(DESTDIR)/include/luminescence.h

{'fraction_non_alphanumeric': 0.14917541229385306, 'fraction_numerical': 0.0239880059970015, 'mean_word_length': 4.493827160493828, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1472928', 'n_tokens_mistral': 579, 'n_tokens_neox': 485, 'n_words': 114}