summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2910bf5)
raw | patch | inline | side by side (parent: 2910bf5)
author | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 22:12:13 +0000 (15:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 22:12:13 +0000 (15:12 -0700) |
This reverts commit 2910bf56a4ffc13c398fb04ba32910cb3b724091, as it
does not really solve the issue of making $(sysconfigdir) any more
useful than it currently is.
does not really solve the issue of making $(sysconfigdir) any more
useful than it currently is.
Makefile | patch | blob | history |
diff --git a/Makefile b/Makefile
index a31d93523b5c4374cb8203c5ccf2f19b8bfc51d7..5c2b797554a25d5cecee28aa6d18fc885aa0b3e8 100644 (file)
--- a/Makefile
+++ b/Makefile
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 = :
-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 =