Merge pull request #9 from astrolabe-coop/sandbox/rzr/review/master

build: Add install rule
This commit is contained in:
microwavesafe 2021-09-07 08:45:17 +01:00 committed by GitHub
commit 101018172b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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/