From: Gerrit Pape <pape@smarden.org>
To: git@vger.kernel.org
Subject: [PATCH] add install-lib target to install libgit.a library plus headers.
Date: Wed, 14 Feb 2007 14:57:25 +0000 [thread overview]
Message-ID: <20070214145725.2827.qmail@0b3a4e2ad592dc.315fe32.mid.smarden.org> (raw)
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@smarden.org>
---
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
next reply other threads:[~2007-02-14 14:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-14 14:57 Gerrit Pape [this message]
2007-02-14 15:51 ` [PATCH] add install-lib target to install libgit.a library plus headers Johannes Schindelin
2007-02-14 18:24 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070214145725.2827.qmail@0b3a4e2ad592dc.315fe32.mid.smarden.org \
--to=pape@smarden.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).