<commit_before>all :
clean ::
.PHONY : all clean
#
ifneq ($V,1)
# delete these lines if you don't find colors amusing.
# also, if input is not a tty, then you won't get colors.
_START_COLOR := $(shell tty >/dev/null && tput setaf 1 && tput bold)
_END_COLOR := $(shell tty >/dev/null && tput sgr0)
Q = @echo "$1$(_START_COLOR)";$2;echo -n "$(_END_COLOR)"
else
Q = $2
endif
# select OS parameters
M := $(shell $(CC) -dumpmachine)
ifneq ($(findstring mingw,$M),)
CFLAGS = -Wall -W -g -O0 -mno-cygwin -mconsole
LDLIBS_net = -lws2_32
E = .exe
else
CFLAGS = -Wall -W -g -O0
LDLIBS_net =
E =
endif
#
%.o : %.c
	$(call Q,CC $@,$(CROSS_COMPILE)$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(filter %.c,$^))
%.c : %.leg
	$(call Q,LEG $@ <- $<,leg -o$@ $<)
#
define gen
SRCS_$1 := $2
OBJS_$1 := $$(SRCS_$1:.c=.o)
all : $1$E
clean ::
	$$(RM) $1$E $$(OBJS_$1)
$1$E : $$(OBJS_$1)
	$(call Q,LD $$@ ($$^),$$(CROSS_COMPILE)$$(CC) $$(CFLAGS) $$(CPPFLAGS) $$(LDFLAGS) $3 -o $$@ $$(filter %.o %.a,$$^))<commit_msg>in Makefile, place library flags at the end<commit_after>all :
clean ::
.PHONY : all clean
#
ifneq ($V,1)
# delete these lines if you don't find colors amusing.
# also, if input is not a tty, then you won't get colors.
_START_COLOR := $(shell tty >/dev/null && tput setaf 1 && tput bold)
_END_COLOR := $(shell tty >/dev/null && tput sgr0)
Q = @echo "$1$(_START_COLOR)";$2;echo -n "$(_END_COLOR)"
else
Q = $2
endif
# select OS parameters
M := $(shell $(CC) -dumpmachine)
ifneq ($(findstring mingw,$M),)
CFLAGS = -Wall -W -g -O0 -mno-cygwin -mconsole
LDLIBS_net = -lws2_32
E = .exe
else
CFLAGS = -Wall -W -g -O0
LDLIBS_net =
E =
endif
#
%.o : %.c
	$(call Q,CC $@,$(CROSS_COMPILE)$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $(filter %.c,$^))
%.c : %.leg
	$(call Q,LEG $@ <- $<,leg -o$@ $<)
#
define gen
SRCS_$1 := $2
OBJS_$1 := $$(SRCS_$1:.c=.o)
all : $1$E
clean ::
	$$(RM) $1$E $$(OBJS_$1)
$1$E : $$(OBJS_$1)
	$(call Q,LD $$@ ($$^),$$(CROSS_COMPILE)$$(CC) $$(CFLAGS) $$(CPPFLAGS) $$(LDFLAGS) -o $$@ $$(filter %.o %.a,$$^) $3)
{'fraction_non_alphanumeric': 0.24825174825174826, 'fraction_numerical': 0.02097902097902098, 'mean_word_length': 3.9334975369458127, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1927273', 'n_tokens_mistral': 939, 'n_tokens_neox': 887, 'n_words': 254}