2018-01-08 22:44:26 +01:00
|
|
|
CLANG_FORMAT ?= clang-format
|
2017-12-20 16:20:01 +01:00
|
|
|
|
2018-10-11 22:12:48 +02:00
|
|
|
.PHONY: database format clean env
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
virtualenv --python=python3 env
|
|
|
|
|
. env/bin/activate; pip install -r requirements.txt
|
|
|
|
|
ln -sf $(PWD)/prjxray env/lib/python3.*/site-packages/
|
2018-02-06 02:51:33 +01:00
|
|
|
|
2018-02-06 02:51:32 +01:00
|
|
|
build:
|
2017-12-20 16:20:01 +01:00
|
|
|
git submodule update --init --recursive
|
|
|
|
|
mkdir -p build
|
2018-02-06 02:51:32 +01:00
|
|
|
cd build; cmake ..; $(MAKE)
|
2018-01-08 22:44:26 +01:00
|
|
|
|
2018-02-06 02:51:35 +01:00
|
|
|
database: build
|
|
|
|
|
$(MAKE) -C $@
|
|
|
|
|
|
2018-01-08 22:44:26 +01:00
|
|
|
format:
|
2018-01-22 23:18:02 +01:00
|
|
|
find . -name \*.cc -and -not -path './third_party/*' -and -not -path './.git/*' -exec $(CLANG_FORMAT) -style=file -i {} \;
|
|
|
|
|
find . -name \*.h -and -not -path './third_party/*' -and -not -path './.git/*' -exec $(CLANG_FORMAT) -style=file -i {} \;
|
|
|
|
|
find . -name \*.py -and -not -path './third_party/*' -and -not -path './.git/*' -exec yapf -p -i {} \;
|
2018-02-06 02:51:33 +01:00
|
|
|
|
|
|
|
|
clean:
|
2018-02-06 02:51:35 +01:00
|
|
|
$(MAKE) -C database clean
|
2018-02-06 02:51:33 +01:00
|
|
|
$(MAKE) -C fuzzers clean
|
|
|
|
|
rm -rf build
|