<commit_before>.PHONY: all clean realclean check test update get-deps install uninstall check-install

all: include/ict/ict.h build
	ninja -C build

build:
	meson --buildtype release $@

clean:
	@test -d build && ninja -C build clean || true
	rm -f xddl/3GPP/TS-25.331.xddl
	rm -f xddl/3GPP/TS-36.331.xddl

realclean:
	rm -rf build

check: build
	ninja -C build test

install: build
	ninja -C build install

uninstall:
	ninja -C build uninstall

check-install: build
	XDDLPATH=/usr/local/share/xddl xv unit/xddlunit/icd_gold.xv
	c++ -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -o 'build/decode.cpp.o' -c examples/decode.cpp
	c++ -o build/decode 'build/decode.cpp.o' -lxenon
	XDDLPATH=/usr/local/share/xddl build/decode

tags:
	@echo Making tags...
	@$(RM) tags; find . -name node_modules -type d -prune -o -name '*.c' -o -name '*.cc' \
    -o -name '*.cpp' \
	-o -name '*.h' -o -name '*.py' > flist && \
	ctags --file-tags=yes --language-force=C++ -L flist && rm flist
	@echo tags complete.

include/ict/ict.h:
	git submodule update --init --recursive

update:
	git submodule foreach git pull origin master

get-deps:
	sudo apt-get update
	sudo apt-get install -y libboost-all-dev meson<commit_msg>fix ict.h path in Makefile<commit_after>.PHONY: all clean realclean check test update get-deps install uninstall check-install

all: include/xenon/ict/ict.h build
	ninja -C build

build:
	meson --buildtype release $@

clean:
	@test -d build && ninja -C build clean || true
	rm -f xddl/3GPP/TS-25.331.xddl
	rm -f xddl/3GPP/TS-36.331.xddl

realclean:
	rm -rf build

check: build
	ninja -C build test

install: build
	ninja -C build install

uninstall:
	ninja -C build uninstall

check-install: build
	XDDLPATH=/usr/local/share/xddl xv unit/xddlunit/icd_gold.xv
	c++ -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wnon-virtual-dtor -std=c++17 -O3 -o 'build/decode.cpp.o' -c examples/decode.cpp
	c++ -o build/decode 'build/decode.cpp.o' -lxenon
	XDDLPATH=/usr/local/share/xddl build/decode

tags:
	@echo Making tags...
	@$(RM) tags; find . -name node_modules -type d -prune -o -name '*.c' -o -name '*.cc' \
    -o -name '*.cpp' \
	-o -name '*.h' -o -name '*.py' > flist && \
	ctags --file-tags=yes --language-force=C++ -L flist && rm flist
	@echo tags complete.

include/xenon/ict/ict.h:
	git submodule update --init --recursive

update:
	git submodule foreach git pull origin master

get-deps:
	sudo apt-get update
	sudo apt-get install -y libboost-all-dev meson
{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.013605442176870748, 'mean_word_length': 3.1254125412541254, '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': '3236704', 'n_tokens_mistral': 1047, 'n_tokens_neox': 1006, 'n_words': 289}