Bikeshed makefile more

This commit is contained in:
Edward Shen 2020-01-27 14:25:15 -05:00
parent 2295fd97b4
commit 8ddda65909
No known key found for this signature in database
GPG Key ID: F350507060ED6C90
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ CARGO_FLAGS = --release
BOSSA_FLAGS = -ewvRo 0x2000
TARGET_DIR = target
TARGET_ARCH = $(shell cat $(CARGO_CONF) | grep -E '^target\s+=' | grep -Eo '"[^"]+"' | grep -Eo '[^"]+')
TARGET_ARCH = $(shell grep -oP '^target\s+=\s"\K[\w\-]+' $(CARGO_CONF))
CARGO_BIN = $(TARGET_DIR)/$(TARGET_ARCH)/release/onyx
FLASH_IMG = $(TARGET_DIR)/onyx.bin