Skip to content

Commit 410ee20

Browse files
committed
Revert "Honor $(prefix) set in config.mak* when defining ETC_GIT* and sysconfdir"
This reverts commit 2910bf5, as it does not really solve the issue of making $(sysconfigdir) any more useful than it currently is.
1 parent 2910bf5 commit 410ee20

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Makefile

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,15 @@ sharedir = $(prefix)/share
291291
gitwebdir = $(sharedir)/gitweb
292292
template_dir = share/git-core/templates
293293
htmldir = share/doc/git-doc
294-
ETC_GITCONFIG = $(git_etcdir)/gitconfig
295-
ETC_GITATTRIBUTES = $(git_etcdir)/gitattributes
294+
ifeq ($(prefix),/usr)
295+
sysconfdir = /etc
296+
ETC_GITCONFIG = $(sysconfdir)/gitconfig
297+
ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
298+
else
299+
sysconfdir = $(prefix)/etc
300+
ETC_GITCONFIG = etc/gitconfig
301+
ETC_GITATTRIBUTES = etc/gitattributes
302+
endif
296303
lib = lib
297304
# DESTDIR=
298305
pathsep = :
@@ -1189,14 +1196,6 @@ endif
11891196
-include config.mak.autogen
11901197
-include config.mak
11911198

1192-
ifeq ($(prefix),/usr)
1193-
sysconfdir = /etc
1194-
git_etcdir = /etc
1195-
else
1196-
sysconfdir = $(prefix)/etc
1197-
git_etcdir = etc
1198-
endif
1199-
12001199
ifdef CHECK_HEADER_DEPENDENCIES
12011200
COMPUTE_HEADER_DEPENDENCIES =
12021201
USE_COMPUTED_HEADER_DEPENDENCIES =

0 commit comments

Comments
 (0)