<commit_before>include ${HALIB}/make/config.mk
include ${HALIB}/make/rules.mk

EXAMPLES=$(notdir $(basename ${OBJECTS}))

PORTMAPS=$(foreach pm,$(wildcard ${INC}/*.portmap),$(basename ${pm})_portmap.h)

GARBAGE+=${PORTMAPS}

.PHONY: help all generate_portmaps %.program ${EXAMPLES}

help:
	@echo "current examples: "
	@echo all ${EXAMPLES}

all: $(addprefix ${BIN}/, $(addsuffix .elf, ${EXAMPLES}))

generate_portmaps: ${PORTMAPS}

${BIN}/%.elf: ${BUILD}/%.o | ${BIN} generate_portmaps
	@echo "(LD    ) $(notdir $<) -> $(notdir $@)"
	${CXX} ${LDFLAGS} $< -o $@ ${LDPATHS} ${LIBS}

${EXAMPLES}: %: ${BIN}/%.elf

clean:
	@echo "(CLEAN)"
	@rm -rf ${GARBAGE}<commit_msg>Minor Bug fix in Examples Makefile<commit_after>include ${HALIB}/make/config.mk
include ${HALIB}/make/rules.mk

EXAMPLES=$(notdir $(basename ${OBJECTS}))

PORTMAPS=$(foreach pm,$(wildcard ${INC}/*.portmap),$(basename ${pm})_portmap.h)

GARBAGE+=${PORTMAPS}

.PHONY: help all generate_portmaps %.program ${EXAMPLES}

help:
	@echo "current examples: "
	@echo all ${EXAMPLES}

all: $(addprefix ${BIN}/, $(addsuffix .elf, ${EXAMPLES}))

generate_portmaps: ${PORTMAPS}

${BIN}/%.elf: ${BUILD}/%.o | ${BIN} generate_portmaps
	@echo "(LD    ) $(notdir $<) -> $(notdir $@)"
	@${CXX} ${LDFLAGS} $< -o $@ ${LDPATHS} ${LIBS}

${EXAMPLES}: %: ${BIN}/%.elf

clean:
	@echo "(CLEAN)"
	@rm -rf ${GARBAGE}
{'fraction_non_alphanumeric': 0.241506646971935, 'fraction_numerical': 0.0, 'mean_word_length': 5.3915094339622645, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1823439', 'n_tokens_mistral': 551, 'n_tokens_neox': 551, 'n_words': 112}