Makefile 694 Bytes
Newer Older
1
2
3
4
5
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

CPPSOURCES := $(shell find $(CURDIR) -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)')

6
.PHONY: cpplint cppformat cppbuild thirdparty postinstall
7
8
9
10
11
12

cpplint:
	clang-format --verbose --dry-run --Werror $(CPPSOURCES)

cppformat:
	clang-format --verbose -i $(CPPSOURCES)
13
14
15

cppbuild:
	cd ./superbench/benchmarks/ && bash build.sh
16

17
18
19
directxbuild:
	cd ./superbench/benchmarks/ && build.bat

20
21
22
thirdparty:
	cd ./third_party/ && make all

23
24
25
26
postinstall:
ifeq ($(shell which ansible-galaxy),)
	$(error 'Cannot find ansible-galaxy')
else
27
	ansible-galaxy collection install ansible.posix ansible.utils community.crypto
28
endif