Merge branch 'kk/maint-prefix-in-config-mak' into maint
* kk/maint-prefix-in-config-mak: Honor $(prefix) set in config.mak* when defining ETC_GIT* Revert "Honor $(prefix) set in config.mak* when defining ETC_GIT* and sysconfdir" Honor $(prefix) set in config.mak* when defining ETC_GIT* and sysconfdir
This commit is contained in:
18
Makefile
18
Makefile
@ -274,8 +274,7 @@ STRIP ?= strip
|
|||||||
# mandir
|
# mandir
|
||||||
# infodir
|
# infodir
|
||||||
# htmldir
|
# htmldir
|
||||||
# ETC_GITCONFIG (but not sysconfdir)
|
# sysconfdir
|
||||||
# ETC_GITATTRIBUTES
|
|
||||||
# can be specified as a relative path some/where/else;
|
# can be specified as a relative path some/where/else;
|
||||||
# this is interpreted as relative to $(prefix) and "git" at
|
# this is interpreted as relative to $(prefix) and "git" at
|
||||||
# runtime figures out where they are based on the path to the executable.
|
# runtime figures out where they are based on the path to the executable.
|
||||||
@ -291,15 +290,8 @@ sharedir = $(prefix)/share
|
|||||||
gitwebdir = $(sharedir)/gitweb
|
gitwebdir = $(sharedir)/gitweb
|
||||||
template_dir = share/git-core/templates
|
template_dir = share/git-core/templates
|
||||||
htmldir = share/doc/git-doc
|
htmldir = share/doc/git-doc
|
||||||
ifeq ($(prefix),/usr)
|
|
||||||
sysconfdir = /etc
|
|
||||||
ETC_GITCONFIG = $(sysconfdir)/gitconfig
|
ETC_GITCONFIG = $(sysconfdir)/gitconfig
|
||||||
ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
|
ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
|
||||||
else
|
|
||||||
sysconfdir = $(prefix)/etc
|
|
||||||
ETC_GITCONFIG = etc/gitconfig
|
|
||||||
ETC_GITATTRIBUTES = etc/gitattributes
|
|
||||||
endif
|
|
||||||
lib = lib
|
lib = lib
|
||||||
# DESTDIR=
|
# DESTDIR=
|
||||||
pathsep = :
|
pathsep = :
|
||||||
@ -1192,6 +1184,14 @@ endif
|
|||||||
-include config.mak.autogen
|
-include config.mak.autogen
|
||||||
-include config.mak
|
-include config.mak
|
||||||
|
|
||||||
|
ifndef sysconfdir
|
||||||
|
ifeq ($(prefix),/usr)
|
||||||
|
sysconfdir = /etc
|
||||||
|
else
|
||||||
|
sysconfdir = etc
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
ifdef CHECK_HEADER_DEPENDENCIES
|
ifdef CHECK_HEADER_DEPENDENCIES
|
||||||
COMPUTE_HEADER_DEPENDENCIES =
|
COMPUTE_HEADER_DEPENDENCIES =
|
||||||
USE_COMPUTED_HEADER_DEPENDENCIES =
|
USE_COMPUTED_HEADER_DEPENDENCIES =
|
||||||
|
Reference in New Issue
Block a user