mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Made PRE_PUSH_TARGET_LIST settable from 'make/local.mk'.
This commit is contained in:
parent
2b29c2d7d0
commit
35bb19d6d4
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -95,6 +95,9 @@ FEATURES =
|
||||||
FEATURE_CUT_LEVEL_SUPPLIED := $(FEATURE_CUT_LEVEL)
|
FEATURE_CUT_LEVEL_SUPPLIED := $(FEATURE_CUT_LEVEL)
|
||||||
FEATURE_CUT_LEVEL =
|
FEATURE_CUT_LEVEL =
|
||||||
|
|
||||||
|
# The list of targets to build for 'pre-push'
|
||||||
|
PRE_PUSH_TARGET_LIST ?= BETAFLIGHTF3 OMNIBUSF4 SPRACINGF7DUAL SITL test-representative
|
||||||
|
|
||||||
include $(ROOT)/make/targets.mk
|
include $(ROOT)/make/targets.mk
|
||||||
|
|
||||||
REVISION := $(shell git log -1 --format="%h")
|
REVISION := $(shell git log -1 --format="%h")
|
||||||
|
@ -349,7 +352,7 @@ unsupported: $(UNSUPPORTED_TARGETS)
|
||||||
|
|
||||||
## pre-push : The minimum verification that should be run before pushing, to check if CI has a chance of succeeding
|
## pre-push : The minimum verification that should be run before pushing, to check if CI has a chance of succeeding
|
||||||
pre-push:
|
pre-push:
|
||||||
$(MAKE) BETAFLIGHTF3_clean BETAFLIGHTF3 OMNIBUSF4_clean OMNIBUSF4 SPRACINGF7DUAL_clean SPRACINGF7DUAL SITL_clean SITL clean_test test-representative EXTRA_FLAGS=-Werror
|
$(MAKE) $(addprefix clean_,$(PRE_PUSH_TARGET_LIST)) $(PRE_PUSH_TARGET_LIST) EXTRA_FLAGS=-Werror
|
||||||
|
|
||||||
## official : Build all official (travis) targets
|
## official : Build all official (travis) targets
|
||||||
official: $(OFFICIAL_TARGETS)
|
official: $(OFFICIAL_TARGETS)
|
||||||
|
@ -388,6 +391,9 @@ clean:
|
||||||
@echo "Cleaning $(TARGET) succeeded."
|
@echo "Cleaning $(TARGET) succeeded."
|
||||||
|
|
||||||
## clean_test : clean up temporary / machine-generated files (tests)
|
## clean_test : clean up temporary / machine-generated files (tests)
|
||||||
|
clean_test-%:
|
||||||
|
$(MAKE) clean_test
|
||||||
|
|
||||||
clean_test:
|
clean_test:
|
||||||
$(V0) cd src/test && $(MAKE) clean || true
|
$(V0) cd src/test && $(MAKE) clean || true
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue