config.mak.in: remove unused definitions

When 5566771 (autoconf: Use autoconf to write installation directories to config.mak.autogen, 2006-07-03) introduced support for autoconf generated config.mak file, it added an "export" for a few common makefile variables, in addition to definitions of srcdir and VPATH. The "export" logically does not belong there. The make variables like mandir, prefix, etc, should be exported to submakes for people who use config.mak and people who use config.mak.autogen the same way; if we want to get these exported, that should be in the main Makefile. We do use mandir and htmldir in Documentation/Makefile, so let's add export for them in the main Makefile instead. We may eventually want to support VPATH, and srcdir may turn out to be useful for that purpose, but right now nobody uses it, so it is useless to define them in this file. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 2, 2013 at 17:58 UTC d8cf908cb6012cd4dc3d1089a849daf646150c2e
2 files changed +1 -8
Makefile
+1 -1
@@ -359,7 +359,7 @@ lib = lib
359 # DESTDIR=
360 pathsep = :
361
362 -export prefix bindir sharedir sysconfdir gitwebdir localedir
362 +export prefix bindir sharedir mandir htmldir sysconfdir gitwebdir localedir
363
364 CC = cc
365 AR = ar
config.mak.in
-7
@@ -13,7 +13,6 @@ DIFF = @DIFF@
13 TCLTK_PATH = @TCLTK_PATH@
14
15 prefix = @prefix@
16 -exec_prefix = @exec_prefix@
16 bindir = @bindir@
17 gitexecdir = @libexecdir@/git-core
18 datarootdir = @datarootdir@
@@ -22,12 +21,6 @@ sysconfdir = @sysconfdir@
21
22 mandir=@mandir@
23
25 -srcdir = @srcdir@
26 -VPATH = @srcdir@
27 -
28 -export exec_prefix mandir
29 -export srcdir VPATH
30 -
24 NEEDS_SSL_WITH_CRYPTO=@NEEDS_SSL_WITH_CRYPTO@
25 NO_OPENSSL=@NO_OPENSSL@
26 NO_CURL=@NO_CURL@