Files
prjxray/Makefile
T

14 lines
520 B
Makefile
Raw Normal View History

2017-12-20 16:20:01 +01:00
JOBS ?= $(shell nproc)
JOBS ?= 2
2018-01-08 13:44:26 -08:00
CLANG_FORMAT ?= clang-format
2017-12-20 16:20:01 +01:00
go:
git submodule update --init --recursive
mkdir -p build
cd build; cmake ..; make -j$(JOBS)
2018-01-08 13:44:26 -08:00
format:
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 {} \;