summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-09 22:12:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-05-09 22:12:13 (GMT)
commit410ee20bde21b014c7655ea4f19d4ca66486df22 (patch)
treea42ca5aeedd45d87cf0e5b88ecc59295bc92699f
parent2910bf56a4ffc13c398fb04ba32910cb3b724091 (diff)
downloadgit-410ee20bde21b014c7655ea4f19d4ca66486df22.zip
git-410ee20bde21b014c7655ea4f19d4ca66486df22.tar.gz
git-410ee20bde21b014c7655ea4f19d4ca66486df22.tar.bz2
Revert "Honor $(prefix) set in config.mak* when defining ETC_GIT* and sysconfdir"
This reverts commit 2910bf56a4ffc13c398fb04ba32910cb3b724091, as it does not really solve the issue of making $(sysconfigdir) any more useful than it currently is.
-rw-r--r--Makefile19
1 files changed, 9 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index a31d935..5c2b797 100644
--- a/Makefile
+++ b/Makefile
@@ -291,8 +291,15 @@ sharedir = $(prefix)/share
gitwebdir = $(sharedir)/gitweb
template_dir = share/git-core/templates
htmldir = share/doc/git-doc
-ETC_GITCONFIG = $(git_etcdir)/gitconfig
-ETC_GITATTRIBUTES = $(git_etcdir)/gitattributes
+ifeq ($(prefix),/usr)
+sysconfdir = /etc
+ETC_GITCONFIG = $(sysconfdir)/gitconfig
+ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
+else
+sysconfdir = $(prefix)/etc
+ETC_GITCONFIG = etc/gitconfig
+ETC_GITATTRIBUTES = etc/gitattributes
+endif
lib = lib
# DESTDIR=
pathsep = :
@@ -1189,14 +1196,6 @@ endif
-include config.mak.autogen
-include config.mak
-ifeq ($(prefix),/usr)
-sysconfdir = /etc
-git_etcdir = /etc
-else
-sysconfdir = $(prefix)/etc
-git_etcdir = etc
-endif
-
ifdef CHECK_HEADER_DEPENDENCIES
COMPUTE_HEADER_DEPENDENCIES =
USE_COMPUTED_HEADER_DEPENDENCIES =