mirror of
https://github.com/joeycastillo/second-movement.git
synced 2025-10-29 19:47:40 +00:00
tweak Makefile checks, no need for BOARD or DISPLAY to make install
This commit is contained in:
parent
8eaa9262ad
commit
f64f1f4b2f
14
Makefile
14
Makefile
@ -27,13 +27,16 @@ endef
|
||||
|
||||
# Only require BOARD and DISPLAY for non-clean targets
|
||||
ifeq (,$(filter clean,$(MAKECMDGOALS)))
|
||||
ifndef BOARD
|
||||
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
|
||||
endif
|
||||
|
||||
ifndef DISPLAY
|
||||
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
|
||||
else
|
||||
ifeq ($(DISPLAY), custom)
|
||||
DEFINES += -DFORCE_CUSTOM_LCD_TYPE
|
||||
else ifeq ($(DISPLAY), classic)
|
||||
@ -43,7 +46,8 @@ else
|
||||
else
|
||||
$(error Build failed: invalid DISPLAY type. 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)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef NOSLEEP
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user