<commit_before>-include config.mk

CPPFLAGS	+= -I.
CFLAGS		+= -g -Wall
CXXFLAGS	+= -std=gnu++0x

LIBRARIES	:= concrete
TESTS		:= example test

build: concrete

concrete: concrete-static
example: concrete
test: concrete

include build/project.mk

SRCDIRS		:= $(LIBRARIES) $(TESTS)
SOURCES		:= $(shell find $(SRCDIRS) -name '*.[cht]pp')

todo::
	$(QUIET) grep -niE "(todo|xxx)" $(SOURCES) | sed -r \
		-e "s,^(.*:[[:digit:]]+:).*[[:space:]]*//,\1," \
		-e "s,[[:space:]]*/?\*+,," \
		-e "s,[[:space:]]*\*+/[[:space:]]*,,"

GIT_VERSION	= $(shell git describe --dirty --tags --always)
GIT_BRANCH	= $(shell git rev-parse --symbolic-full-name --abbrev-ref HEAD)
GIT_REMOTE	= $(shell git config branch.$(GIT_BRANCH).remote)
GIT_URL		= $(shell git config remote.$(GIT_REMOTE).url)

doc:: doc/html/index.html

doc/html/index.html: doc/Doxyfile doc/main.txt $(shell find concrete -name '*.hpp')
	$(call echo,Doxygen,doc/html)
	$(QUIET) sed < doc/Doxyfile > doc/Doxyfile.version \
		-r "s/^(PROJECT_NUMBER[[:space:]]*=[[:space:]]*)$$/\1git-$(GIT_VERSION)/"
	$(QUIET) doxygen doc/Doxyfile.version<commit_msg>build system: add default goal<commit_after>-include config.mk

CPPFLAGS	+= -I.
CFLAGS		+= -g -Wall
CXXFLAGS	+= -std=gnu++0x

LIBRARIES	:= concrete
TESTS		:= example test

.DEFAULT_GOAL := build

build: concrete

concrete: concrete-static
example: concrete
test: concrete

include build/project.mk

SRCDIRS		:= $(LIBRARIES) $(TESTS)
SOURCES		:= $(shell find $(SRCDIRS) -name '*.[cht]pp')

todo::
	$(QUIET) grep -niE "(todo|xxx)" $(SOURCES) | sed -r \
		-e "s,^(.*:[[:digit:]]+:).*[[:space:]]*//,\1," \
		-e "s,[[:space:]]*/?\*+,," \
		-e "s,[[:space:]]*\*+/[[:space:]]*,,"

GIT_VERSION	= $(shell git describe --dirty --tags --always)
GIT_BRANCH	= $(shell git rev-parse --symbolic-full-name --abbrev-ref HEAD)
GIT_REMOTE	= $(shell git config branch.$(GIT_BRANCH).remote)
GIT_URL		= $(shell git config remote.$(GIT_REMOTE).url)

doc:: doc/html/index.html

doc/html/index.html: doc/Doxyfile doc/main.txt $(shell find concrete -name '*.hpp')
	$(call echo,Doxygen,doc/html)
	$(QUIET) sed < doc/Doxyfile > doc/Doxyfile.version \
		-r "s/^(PROJECT_NUMBER[[:space:]]*=[[:space:]]*)$$/\1git-$(GIT_VERSION)/"
	$(QUIET) doxygen doc/Doxyfile.version
{'fraction_non_alphanumeric': 0.23197492163009403, 'fraction_numerical': 0.0026869682042095834, 'mean_word_length': 4.268867924528302, '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': '839542', 'n_tokens_mistral': 983, 'n_tokens_neox': 920, 'n_words': 189}