<commit_before>all: build

.PHONY: build
build:
	mkdir -p osquery/tables/generated
	python tools/gentable.py osquery/tables/specs/etc_hosts.table
	python tools/gentable.py osquery/tables/specs/kextstat.table
	python tools/gentable.py osquery/tables/specs/processes.table
	python tools/gentable.py osquery/tables/specs/nvram.table
	python tools/gentable.py osquery/tables/specs/osx_version.table
	python tools/gentable.py osquery/tables/specs/alf.table
	python tools/gentable.py osquery/tables/specs/alf_exceptions.table
	python tools/gentable.py osquery/tables/specs/alf_explicit_auths.table
	python tools/gentable.py osquery/tables/specs/alf_services.table
	python tools/gentable.py osquery/tables/specs/apps.table
	python tools/gentable.py osquery/tables/specs/launchd.table
	python tools/gentable.py osquery/tables/specs/cacerts.table
	python tools/gentable.py osquery/tables/specs/listening_ports.table
	python tools/gentable.py osquery/tables/specs/routes.table
	mkdir -p build
	cd build && cmake .. && make -j5

clean:
	cd build && make clean
	rm -rf osquery/tables/generated

deps:
	pip install -r requirements.txt
	brew install cmake
	brew install boost --c++11 --with-python
	brew install gflags
	brew install glog
	brew install snappy
	brew install readline
	git submodule init
	git submodule update

distclean:
	rm -rf build
	rm -rf osquery/tables/generated

format:
	clang-format -i osquery/**/*.h
	clang-format -i osquery/**/*.cpp
	clang-format -i osquery/**/*.mm

runtests: build
	find build -name "*_tests" -type f -exec '{}' \;

update:
	git submodule foreach git pull origin master<commit_msg>moving table generation to it's own Makefile target so that make build doesn't generate all of the tables<commit_after>all: tables build

.PHONY: build
build:
	mkdir -p build
	cd build && cmake .. && make -j5

clean:
	cd build && make clean
	rm -rf osquery/tables/generated

deps:
	pip install -r requirements.txt
	brew install cmake
	brew install boost --c++11 --with-python
	brew install gflags
	brew install glog
	brew install snappy
	brew install readline
	git submodule init
	git submodule update

distclean:
	rm -rf build
	rm -rf osquery/tables/generated

format:
	clang-format -i osquery/**/*.h
	clang-format -i osquery/**/*.cpp
	clang-format -i osquery/**/*.mm

runtests: build
	find build -name "*_tests" -type f -exec '{}' \;

tables:
	mkdir -p osquery/tables/generated
	python tools/gentable.py osquery/tables/specs/etc_hosts.table
	python tools/gentable.py osquery/tables/specs/kextstat.table
	python tools/gentable.py osquery/tables/specs/processes.table
	python tools/gentable.py osquery/tables/specs/nvram.table
	python tools/gentable.py osquery/tables/specs/osx_version.table
	python tools/gentable.py osquery/tables/specs/alf.table
	python tools/gentable.py osquery/tables/specs/alf_exceptions.table
	python tools/gentable.py osquery/tables/specs/alf_explicit_auths.table
	python tools/gentable.py osquery/tables/specs/alf_services.table
	python tools/gentable.py osquery/tables/specs/apps.table
	python tools/gentable.py osquery/tables/specs/launchd.table
	python tools/gentable.py osquery/tables/specs/cacerts.table
	python tools/gentable.py osquery/tables/specs/listening_ports.table
	python tools/gentable.py osquery/tables/specs/routes.table

update:
	git submodule foreach git pull origin master
{'fraction_non_alphanumeric': 0.09825721153846154, 'fraction_numerical': 0.0018028846153846155, 'mean_word_length': 4.309409888357257, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1603683', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1143, 'n_words': 280}