2021-05-17 06:36:41 +03:00
|
|
|
# Copyright (c) Microsoft Corporation.
|
|
|
|
# Licensed under the MIT License.
|
|
|
|
|
|
|
|
CPPSOURCES := $(shell find $(CURDIR) -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)')
|
|
|
|
|
2021-06-01 06:17:44 +03:00
|
|
|
.PHONY: cpplint cppformat cppbuild thirdparty postinstall
|
2021-05-17 06:36:41 +03:00
|
|
|
|
|
|
|
cpplint:
|
|
|
|
clang-format --verbose --dry-run --Werror $(CPPSOURCES)
|
|
|
|
|
|
|
|
cppformat:
|
|
|
|
clang-format --verbose -i $(CPPSOURCES)
|
2021-05-18 06:49:23 +03:00
|
|
|
|
|
|
|
cppbuild:
|
|
|
|
cd ./superbench/benchmarks/ && bash build.sh
|
2021-05-23 18:53:37 +03:00
|
|
|
|
2023-05-29 16:53:24 +03:00
|
|
|
directxcppbuild:
|
2023-06-14 09:44:53 +03:00
|
|
|
cd ./superbench/benchmarks/ && build.bat
|
2023-05-29 16:53:24 +03:00
|
|
|
|
2021-06-01 06:17:44 +03:00
|
|
|
thirdparty:
|
|
|
|
cd ./third_party/ && make all
|
|
|
|
|
2021-05-23 18:53:37 +03:00
|
|
|
postinstall:
|
|
|
|
ifeq ($(shell which ansible-galaxy),)
|
|
|
|
$(error 'Cannot find ansible-galaxy')
|
|
|
|
else
|
2021-07-02 16:45:56 +03:00
|
|
|
ansible-galaxy collection install ansible.posix ansible.utils community.crypto
|
2021-05-23 18:53:37 +03:00
|
|
|
endif
|