make $prefix available for sub-makefiles
exports $prefix and makes Documentation/Makefile following it also. Signed-off-by: Kai Ruemmler <kai.ruemmler@gmx.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
f48000fcbe
commit
d2b8593fd3
@ -17,14 +17,14 @@ DOC_HTML += $(patsubst %,%.html,$(ARTICLES) $(SP_ARTICLES))
|
|||||||
DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
|
DOC_MAN1=$(patsubst %.txt,%.1,$(MAN1_TXT))
|
||||||
DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
|
DOC_MAN7=$(patsubst %.txt,%.7,$(MAN7_TXT))
|
||||||
|
|
||||||
prefix=$(HOME)
|
prefix?=$(HOME)
|
||||||
bin=$(prefix)/bin
|
bin=$(prefix)/bin
|
||||||
mandir=$(prefix)/man
|
mandir=$(prefix)/man
|
||||||
man1=$(mandir)/man1
|
man1=$(mandir)/man1
|
||||||
man7=$(mandir)/man7
|
man7=$(mandir)/man7
|
||||||
# DESTDIR=
|
# DESTDIR=
|
||||||
|
|
||||||
INSTALL=install
|
INSTALL?=install
|
||||||
|
|
||||||
#
|
#
|
||||||
# Please note that there is a minor bug in asciidoc.
|
# Please note that there is a minor bug in asciidoc.
|
||||||
|
2
Makefile
2
Makefile
@ -293,7 +293,7 @@ SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
|
|||||||
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \
|
||||||
gitk
|
gitk
|
||||||
|
|
||||||
export TAR INSTALL DESTDIR SHELL_PATH
|
export prefix TAR INSTALL DESTDIR SHELL_PATH
|
||||||
### Build rules
|
### Build rules
|
||||||
|
|
||||||
all: $(PROGRAMS) $(SCRIPTS)
|
all: $(PROGRAMS) $(SCRIPTS)
|
||||||
|
Loading…
Reference in New Issue
Block a user