{"thread":{"id":"9790","subject":"[PATCH 2/3] Makefile: Add install-lib and install-include targets","startedAt":"2007-09-05T23:22:13Z","lastAt":"2007-09-06T08:39:23Z","messageCount":2,"participants":["Dmitry V. Levin","Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"52648","messageId":"20070905232213.GB331@nomad.office.altlinux.org","threadId":"9790","inReplyTo":null,"subject":"[PATCH 2/3] Makefile: Add install-lib and install-include targets","fromName":"Dmitry V. Levin","fromEmail":"ldv@altlinux.org","sentAt":"2007-09-05T23:22:13Z","receivedAt":"2007-09-05T23:22:13Z","isPatch":true,"sender":{"key":"ldv@altlinux.org","avatar":"https://avatars.githubusercontent.com/u/5281408?v=4"},"body":"Several external projects (e.g. parsecvs) need libgit library\nand related header files.\n\nSigned-off-by: Dmitry V. Levin <ldv@altlinux.org>\n---\n Makefile |   11 +++++++++++\n 1 files changed, 11 insertions(+), 0 deletions(-)\n\ndiff --git a/Makefile b/Makefile\nindex 51af531..d50e30b 100644\n--- a/Makefile\n+++ b/Makefile\n@@ -143,6 +143,8 @@ STRIP ?= strip\n \n prefix = $(HOME)\n bindir = $(prefix)/bin\n+libdir = $(prefix)/lib\n+includedir = $(prefix)/include\n gitexecdir = $(bindir)\n sharedir = $(prefix)/share\n template_dir = $(sharedir)/git-core/templates\n@@ -702,6 +704,8 @@ ETC_GITCONFIG_SQ = $(subst ','\\'',$(ETC_GITCONFIG))\n \n DESTDIR_SQ = $(subst ','\\'',$(DESTDIR))\n bindir_SQ = $(subst ','\\'',$(bindir))\n+libdir_SQ = $(subst ','\\'',$(libdir))\n+includedir_SQ = $(subst ','\\'',$(includedir))\n gitexecdir_SQ = $(subst ','\\'',$(gitexecdir))\n template_dir_SQ = $(subst ','\\'',$(template_dir))\n prefix_SQ = $(subst ','\\'',$(prefix))\n@@ -1017,6 +1021,13 @@ install-info:\n quick-install-doc:\n \t$(MAKE) -C Documentation quick-install\n \n+install-lib: $(LIB_FILE)\n+\t$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(libdir_SQ)'\n+\t$(INSTALL) -p -m644 $(LIB_FILE) '$(DESTDIR_SQ)$(libdir_SQ)/'\n+\n+install-include: $(LIB_H)\n+\t$(INSTALL) -d -m755 '$(DESTDIR_SQ)$(includedir_SQ)/git'\n+\t$(INSTALL) -p -m644 $(LIB_H) '$(DESTDIR_SQ)$(includedir_SQ)/git/'\n \n \n ### Maintainer's dist rules\n-- \nldv\n"},{"id":"52711","messageId":"Pine.LNX.4.64.0709060938570.28586@racer.site","threadId":"9790","inReplyTo":"20070905232213.GB331@nomad.office.altlinux.org","subject":"Re: [PATCH 2/3] Makefile: Add install-lib and install-include targets","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-09-06T08:39:23Z","receivedAt":"2007-09-06T08:39:23Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Thu, 6 Sep 2007, Dmitry V. Levin wrote:\n\n> Several external projects (e.g. parsecvs) need libgit library\n> and related header files.\n\nbut does that not pretend that we have a stable API?  Which we have not at \nall, thank you very much.  However, Luiz created a thin libgit in his GSoC \nproject, and IMHO this would be the way to continue.  If it is not \ncomplete enough, well, complete it.\n\nCiao,\nDscho\n"}]}