diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-12-01 16:34:09 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-12-03 12:06:51 +0100 |
commit | 0c8eeea665a783b8fe82c2b6d9f01cad6cb1054e (patch) | |
tree | 00b3b5db49b124f1fe85da47a4d5d1fad58c4c04 /scripts/main.mk | |
parent | 678a5ca91e7e763efc5140102ea9d537b05308e4 (diff) | |
download | qtlocation-mapboxgl-0c8eeea665a783b8fe82c2b6d9f01cad6cb1054e.tar.gz |
[build] add make target "tidy" for running clang-tidy
Diffstat (limited to 'scripts/main.mk')
-rw-r--r-- | scripts/main.mk | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/main.mk b/scripts/main.mk index 8df100decc..eab78ef626 100644 --- a/scripts/main.mk +++ b/scripts/main.mk @@ -3,12 +3,12 @@ ifeq (,$(V)) endif # Determine host platform -HOST ?= $(BUILD) +export HOST ?= $(BUILD) # Defines host defaults include scripts/$(HOST)/defaults.mk -HOST_VERSION ?= $(BUILD_VERSION) +export HOST_VERSION ?= $(BUILD_VERSION) # Optionally include version-specific host defaults -include scripts/$(HOST)/$(HOST_VERSION)/defaults.mk @@ -20,7 +20,7 @@ ifneq (,$(wildcard scripts/$(HOST)/$(HOST_VERSION)/configure.sh)) CONFIGURE_FILES += scripts/$(HOST)/$(HOST_VERSION)/configure.sh endif -HOST_SLUG = $(HOST)-$(HOST_VERSION) +export HOST_SLUG = $(HOST)-$(HOST_VERSION) CONFIGURE_FILES = scripts/$(HOST)/configure.sh ifneq (,$(wildcard scripts/$(HOST)/$(HOST_VERSION)/configure.sh)) CONFIGURE_FILES += scripts/$(HOST)/$(HOST_VERSION)/configure.sh @@ -153,6 +153,14 @@ Ninja/compdb: Ninja/__project__ $(QUIET)$(ENV) deps/ninja/ninja-$(HOST) -C build/$(HOST_SLUG)/$(BUILDTYPE) \ -t compdb cc cc_s cxx objc objcxx > $(OUTPUT) +#### Tidy ###################################################################### + +tidy: Ninja/compdb + @printf "$(TEXT_BOLD)$(COLOR_GREEN)* Generating header files...$(FORMAT_END)\n" + $(QUIET)$(ENV) deps/ninja/ninja-$(HOST) -C build/$(HOST_SLUG)/$(BUILDTYPE) version shaders + @printf "$(TEXT_BOLD)$(COLOR_GREEN)* Running tidy...$(FORMAT_END)\n" + @./scripts/clang-tidy.sh + #### Run tests ################################################################# test-%: Makefile/test |