From 386a4f39dbe13a9359e87fd37d12ce83e28f08d3 Mon Sep 17 00:00:00 2001 From: Quentin Quadrat Date: Sun, 28 Apr 2024 01:54:19 +0200 Subject: [PATCH] Add install includes only macro --- Makefile.macros | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile.macros b/Makefile.macros index 53c68a4..7f6bf31 100644 --- a/Makefile.macros +++ b/Makefile.macros @@ -269,7 +269,7 @@ define INSTALL_PROJECT_LIBRARIES endef ################################################### -# Install .hpp files to the $(INSTALL_INCLUDEDIR) folder +# Install all .hpp files to the $(INSTALL_INCLUDEDIR) folder # TODO need glob regex # define INSTALL_PROJECT_HEADERS @@ -279,6 +279,14 @@ define INSTALL_PROJECT_HEADERS -name "*.[hit]pp" -o -name "*.incl" -o -name "*.h" -o -name "*.hh" -o -name "*.hxx") endef +################################################### +# Install hpp files from include folder to the $(INSTALL_INCLUDEDIR) folder +# +define INSTALL_PROJECT_INCLUDES + @$(call print-to,"Installing","headers","$(INSTALL_INCLUDEDIR)","") + @$(call INSTALL_FOLDER,include,$(INSTALL_INCLUDEDIR)) +endef + ################################################### # Install folder and files of third part libraries #