diff options
author | Junio C Hamano <junkio@cox.net> | 2006-07-26 13:35:35 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-26 13:35:35 -0700 |
commit | 24cf6e5847073d50390e0b7950e8e6b5a09103bc (patch) | |
tree | a3210464e0996746deb4ec381bd8553753cb2ea2 | |
parent | 2c3cff49301c44767c72391cb5288aa0d10563a9 (diff) | |
parent | 7b8cf0cf2973cc8df3bdd36b9b36542b1f04d70a (diff) | |
download | git-24cf6e5847073d50390e0b7950e8e6b5a09103bc.tar.gz git-24cf6e5847073d50390e0b7950e8e6b5a09103bc.tar.xz |
Merge branch 'pb/configure'
* pb/configure:
Rename man1 and man7 variables to man1dir and man7dir
Allow INSTALL, bindir, mandir to be set in main Makefile
-rw-r--r-- | Documentation/Makefile | 14 | ||||
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | contrib/emacs/Makefile | 4 |
3 files changed, 13 insertions, 11 deletions
diff --git a/Documentation/Makefile b/Documentation/Makefile index 6dbe45b50..0d9ffb4ad 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -25,10 +25,10 @@ DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT)) DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT)) prefix?=$(HOME) -bin=$(prefix)/bin -mandir=$(prefix)/man -man1=$(mandir)/man1 -man7=$(mandir)/man7 +bindir?=$(prefix)/bin +mandir?=$(prefix)/man +man1dir=$(mandir)/man1 +man7dir=$(mandir)/man7 # DESTDIR= INSTALL?=install @@ -53,9 +53,9 @@ man1: $(DOC_MAN1) man7: $(DOC_MAN7) install: man - $(INSTALL) -d -m755 $(DESTDIR)$(man1) $(DESTDIR)$(man7) - $(INSTALL) $(DOC_MAN1) $(DESTDIR)$(man1) - $(INSTALL) $(DOC_MAN7) $(DESTDIR)$(man7) + $(INSTALL) -d -m755 $(DESTDIR)$(man1dir) $(DESTDIR)$(man7dir) + $(INSTALL) $(DOC_MAN1) $(DESTDIR)$(man1dir) + $(INSTALL) $(DOC_MAN7) $(DESTDIR)$(man7dir) # @@ -116,6 +116,8 @@ template_dir = $(prefix)/share/git-core/templates/ GIT_PYTHON_DIR = $(prefix)/share/git-core/python # DESTDIR= +export prefix bindir gitexecdir template_dir GIT_PYTHON_DIR + CC = gcc AR = ar TAR = tar @@ -753,8 +755,8 @@ dist-doc: rm -fr .doc-tmp-dir mkdir .doc-tmp-dir .doc-tmp-dir/man1 .doc-tmp-dir/man7 $(MAKE) -C Documentation DESTDIR=./ \ - man1=../.doc-tmp-dir/man1 \ - man7=../.doc-tmp-dir/man7 \ + man1dir=../.doc-tmp-dir/man1 \ + man7dir=../.doc-tmp-dir/man7 \ install cd .doc-tmp-dir && $(TAR) cf ../$(manpages).tar . gzip -n -9 -f $(manpages).tar diff --git a/contrib/emacs/Makefile b/contrib/emacs/Makefile index d3619db51..350846de9 100644 --- a/contrib/emacs/Makefile +++ b/contrib/emacs/Makefile @@ -3,9 +3,9 @@ EMACS = emacs ELC = git.elc vc-git.elc -INSTALL = install +INSTALL ?= install INSTALL_ELC = $(INSTALL) -m 644 -prefix = $(HOME) +prefix ?= $(HOME) emacsdir = $(prefix)/share/emacs/site-lisp all: $(ELC) |