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:
parent
3b3c0ba12b
commit
6de75e62a5
5
Makefile
5
Makefile
@ -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/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user