c0d92ef566
Now the only targets in Makefile are Debug, Release, and reformat. "make reformat" reformats all C++ source in place. Also includes the result of "make reformat". Most of the changes were just moving the "main" include up. Original-commit: flang-compiler/f18@cf7d3a7afb
14 lines
332 B
Makefile
14 lines
332 B
Makefile
CLANG_FORMAT=/proj/pgi/flang/x86_64/flang-dev/bin/clang-format
|
|
|
|
Debug Release:
|
|
@mkdir -p $@
|
|
cd $@ && cmake -DCMAKE_BUILD_TYPE=$@ .. && make
|
|
.PHONY: Debug Release
|
|
|
|
reformat:
|
|
@find . -regextype posix-extended -regex '.*\.(h|cc)' \
|
|
| while read file; do \
|
|
echo $$file; \
|
|
$(CLANG_FORMAT) -i $$file; \
|
|
done
|
|
.PHONY: reformat
|