tweak Makefile checks, no need for BOARD or DISPLAY to make install
This commit is contained in:
4
Makefile
4
Makefile
@@ -27,10 +27,13 @@ endef
|
||||
|
||||
# Only require BOARD and DISPLAY for non-clean targets
|
||||
ifeq (,$(filter clean,$(MAKECMDGOALS)))
|
||||
ifeq (,$(filter install,$(MAKECMDGOALS)))
|
||||
ifndef BOARD
|
||||
$(error Build failed: BOARD not defined. Use one of the four options below, depending on your hardware:$n$n make BOARD=sensorwatch_red DISPLAY=display_type$n make BOARD=sensorwatch_blue DISPLAY=display_type$n make BOARD=sensorwatch_pro DISPLAY=display_type$n$n)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(filter install,$(MAKECMDGOALS)))
|
||||
ifndef DISPLAY
|
||||
$(error Build failed: DISPLAY not defined. Use one of the options below, depending on your hardware:$n$n make BOARD=board_type DISPLAY=classic$n make BOARD=board_type DISPLAY=custom$n$n)
|
||||
else
|
||||
@@ -45,6 +48,7 @@ else
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef NOSLEEP
|
||||
DEFINES += -DMOVEMENT_LOW_ENERGY_MODE_FORBIDDEN
|
||||
|
||||
Reference in New Issue
Block a user