llvm/flang/Makefile
Tim Keith c0d92ef566 [flang] Clean up Makefile, add reformat target.
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
2018-02-07 16:27:36 -08:00

15 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