summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 0df77f55162bf6fc4f8acdf0834ddd57900afe68 (plain)
1
2
3
4
5
6
7
8
9
SUBDIRS = src man

# The set of files to be formatted.
FORMATSOURCES = src/*.c src/*.h
format:
	clang-format -i -style=file $(FORMATSOURCES)

check-format:
	clang-format -i -style=file $(FORMATSOURCES) && git diff --exit-code