From 826cd8c92b08bcab28ebf76d830124e68c2563c9 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Tue, 18 Apr 2023 11:36:46 +0200 Subject: [PATCH] Fixed include dir for lib header install --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 77d684d..5b4df48 100644 --- a/Makefile +++ b/Makefile @@ -90,6 +90,7 @@ $(LIBNAME).hpp: $(HDRS) HEADERSRCDIR := build else HEADERSRCDIR := src +INCLUDEDIR := $(INCLUDEDIR)/$(LIBNAME) endif test: @@ -106,7 +107,7 @@ install: endif $(INSTALL) -d $(LIBDIR) $(INSTALL) -m 644 $(OUTDIR)$(REALNAME) $(LIBDIR) - $(INSTALL) -d $(INCLUDEDIR)/$(LIBNAME) + $(INSTALL) -d $(INCLUDEDIR) $(INSTALL) -m 644 $(HEADERSRCDIR)/$(LIBNAME).hpp $(INCLUDEDIR) ifeq ($(UNAME_S),Darwin) cd $(LIBDIR) && ln -sf $(REALNAME) $(SONAME)