From 6de75e62a5e76f7d032cc97466ea02bed6e17072 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Tue, 7 Sep 2021 08:56:12 +0200 Subject: [PATCH] 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 --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 7954637..a4545b3 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ # WARNING: relies on invocation setting current working directory to Makefile location # This is done in .vscode/task.json # +PROJECT ?= lvgl-sdl MAKEFLAGS := -j $(shell nproc) SRC_EXT := c OBJ_EXT := o @@ -51,3 +52,7 @@ default: $(OBJECTS) clean: rm -rf $(WORKING_DIR) + +install: ${BIN} + install -d ${DESTDIR}/usr/lib/${PROJECT}/bin + install $< ${DESTDIR}/usr/lib/${PROJECT}/bin/