<commit_before>ifneq ($(CYGWIN),)
    CSCOPE=mlcscope
else
    CSCOPE=cscope
endif

default: build


TAGS: */*.c */*.h */*/*.c */*/*.h
	etags */*.c */*.h src/tests/*.c src/tests/*.h src/lock_tree/*.c src/lock_tree/*.h src/range_tree/*.c src/range_tree/*.h newbrt/tests/*.h

SRCDIRS = newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx
BUILDDIRS = $(SRCDIRS) man/texi

CSCOPE_SRCDIRS=$(SRCDIRS) buildheader include
CSCOPE_DIRS =$(shell find $(CSCOPE_SRCDIRS) -type d '('  -path '*/.*'  -prune -o -print ')')
CSCOPE_FILES=$(shell find $(CSCOPE_DIRS) -maxdepth 1 -type f -name "*.[ch]")
cscope.files: $(CSCOPE_DIRS)
	@echo "$(CSCOPE_FILES)" | tr " " "\n" > $@ # Very long command line quieted.

cscope.out: cscope.files $(CSCOPE_FILES)
	$(CSCOPE) -b

src.dir: newbrt.dir
cxx.dir: src.dir
db-benchmark-test.dir: src.dir
db-benchmark-test-cxx.dir: cxx.dir
utils.dir: src.dir

%.dir:
	cd $(patsubst %.dir, %, $@);$(MAKE) build

build: $(patsubst %,%.dir, $(SRCDIRS))
<commit_msg>Added 'tags' target in makefile to do both TAGS and cscope.out<commit_after>ifneq ($(CYGWIN),)
    CSCOPE=mlcscope
else
    CSCOPE=cscope
endif

default: build


TAGS: */*.c */*.h */*/*.c */*/*.h
	etags */*.c */*.h src/tests/*.c src/tests/*.h src/lock_tree/*.c src/lock_tree/*.h src/range_tree/*.c src/range_tree/*.h newbrt/tests/*.h

SRCDIRS = newbrt src cxx utils db-benchmark-test db-benchmark-test-cxx
BUILDDIRS = $(SRCDIRS) man/texi

CSCOPE_SRCDIRS=$(SRCDIRS) buildheader include
CSCOPE_DIRS =$(shell find $(CSCOPE_SRCDIRS) -type d '('  -path '*/.*'  -prune -o -print ')')
CSCOPE_FILES=$(shell find $(CSCOPE_DIRS) -maxdepth 1 -type f -name "*.[ch]")
cscope.files: $(CSCOPE_DIRS)
	@echo "$(CSCOPE_FILES)" | tr " " "\n" > $@ # Very long command line quieted.

cscope.out: cscope.files $(CSCOPE_FILES)
	$(CSCOPE) -b

tags: cscope.out TAGS

src.dir: newbrt.dir
cxx.dir: src.dir
db-benchmark-test.dir: src.dir
db-benchmark-test-cxx.dir: cxx.dir
utils.dir: src.dir

%.dir:
	cd $(patsubst %.dir, %, $@);$(MAKE) build

build: $(patsubst %,%.dir, $(SRCDIRS))

{'fraction_non_alphanumeric': 0.20363101079489695, 'fraction_numerical': 0.0009813542688910696, 'mean_word_length': 3.843230403800475, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6728089', 'n_tokens_mistral': 900, 'n_tokens_neox': 885, 'n_words': 195}