build: Add install rule

PROJECT has been introduced to avoid collision
with other configuration builds (ie: fbdev)

Relate-to: https://github.com/lvgl/lvgl/issues/2534
Signed-off-by: Philippe Coval <philippe.coval@huawei.com>
This commit is contained in:
Philippe Coval 2021-09-07 08:56:12 +02:00 committed by Philippe Coval
parent 3b3c0ba12b
commit 6de75e62a5

View File

@ -3,6 +3,7 @@
# WARNING: relies on invocation setting current working directory to Makefile location # WARNING: relies on invocation setting current working directory to Makefile location
# This is done in .vscode/task.json # This is done in .vscode/task.json
# #
PROJECT ?= lvgl-sdl
MAKEFLAGS := -j $(shell nproc) MAKEFLAGS := -j $(shell nproc)
SRC_EXT := c SRC_EXT := c
OBJ_EXT := o OBJ_EXT := o
@ -51,3 +52,7 @@ default: $(OBJECTS)
clean: clean:
rm -rf $(WORKING_DIR) rm -rf $(WORKING_DIR)
install: ${BIN}
install -d ${DESTDIR}/usr/lib/${PROJECT}/bin
install $< ${DESTDIR}/usr/lib/${PROJECT}/bin/