diff --git a/Makefile.yocto b/Makefile.yocto new file mode 100644 index 0000000..2f39254 --- /dev/null +++ b/Makefile.yocto @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. +# +# The makefile to install public headers on desired path. + +# Get the path of Makefile +ROOT_DIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST)))) + +headers_install: + mkdir -p $(INSTALL_HDR_PATH); \ + rsync -mrl --include='*/' --include='*\.h' --exclude='*' \ + $(ROOT_DIR)/include $(INSTALL_HDR_PATH) + +clean: + rm -rf $(INSTALL_HDR_PATH)