Fixed include dir for lib header install

This commit is contained in:
Bob Polis 2023-04-18 11:38:11 +02:00
parent ac95623e1d
commit 6d57272122

View File

@ -90,6 +90,7 @@ $(LIBNAME).hpp: $(HDRS)
HEADERSRCDIR := build HEADERSRCDIR := build
else else
HEADERSRCDIR := src HEADERSRCDIR := src
INCLUDEDIR := $(INCLUDEDIR)/$(LIBNAME)
endif endif
test: test:
@ -106,7 +107,7 @@ install:
endif endif
$(INSTALL) -d $(LIBDIR) $(INSTALL) -d $(LIBDIR)
$(INSTALL) -m 644 $(OUTDIR)$(REALNAME) $(LIBDIR) $(INSTALL) -m 644 $(OUTDIR)$(REALNAME) $(LIBDIR)
$(INSTALL) -d $(INCLUDEDIR)/$(LIBNAME) $(INSTALL) -d $(INCLUDEDIR)
$(INSTALL) -m 644 $(HEADERSRCDIR)/$(LIBNAME).hpp $(INCLUDEDIR) $(INSTALL) -m 644 $(HEADERSRCDIR)/$(LIBNAME).hpp $(INCLUDEDIR)
ifeq ($(UNAME_S),Darwin) ifeq ($(UNAME_S),Darwin)
cd $(LIBDIR) && ln -sf $(REALNAME) $(SONAME) cd $(LIBDIR) && ln -sf $(REALNAME) $(SONAME)