Patch from Luca Falavigna to install git static library and header files into $(prefix)/lib/, $(prefix)/include/git/, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=407722 Signed-off-by: Gerrit Pape <pape@xxxxxxxxxxx> --- Makefile | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Makefile b/Makefile index ebecbbd..19fe3d5 100644 --- a/Makefile +++ b/Makefile @@ -123,6 +123,8 @@ STRIP ?= strip prefix = $(HOME) bindir = $(prefix)/bin gitexecdir = $(bindir) +headerdir = $(prefix)/include/git +libdir = $(prefix)/lib template_dir = $(prefix)/share/git-core/templates/ # DESTDIR= @@ -588,6 +590,8 @@ SHA1_HEADER_SQ = $(subst ','\'',$(SHA1_HEADER)) DESTDIR_SQ = $(subst ','\'',$(DESTDIR)) bindir_SQ = $(subst ','\'',$(bindir)) gitexecdir_SQ = $(subst ','\'',$(gitexecdir)) +headerdir_SQ = $(subst ','\'',$(headerdir)) +libdir_SQ = $(subst ','\'',$(libdir)) template_dir_SQ = $(subst ','\'',$(template_dir)) prefix_SQ = $(subst ','\'',$(prefix)) @@ -863,7 +867,11 @@ install-doc: quick-install-doc: $(MAKE) -C Documentation quick-install - +install-lib: $(LIB_FILE) + $(INSTALL) -d -m0755 '$(DESTDIR_SQ)$(headerdir_SQ)' + $(INSTALL) -d -m0755 '$(DESTDIR_SQ)$(libdir_SQ)' + $(INSTALL) -m0644 $(LIB_H) '$(DESTDIR_SQ)$(headerdir_SQ)' + $(INSTALL) -m0644 $(LIB_FILE) '$(DESTDIR_SQ)$(libdir_SQ)' ### Maintainer's dist rules -- 1.5.0 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html