make: allow specifying OPENCM3_DIR on command line

Allow specifying the path to the library on the command line, without
editing the makefile
This commit is contained in:
Karl Palsson
2015-10-21 15:18:23 +00:00
parent 3a275fb601
commit 070e5bbb94

View File

@@ -33,7 +33,7 @@ Q := @
MAKEFLAGS += --no-print-directory MAKEFLAGS += --no-print-directory
endif endif
OPENCM3_DIR := $(realpath libopencm3) OPENCM3_DIR ?= $(realpath libopencm3)
EXAMPLE_RULES = elf EXAMPLE_RULES = elf
all: build all: build