config.mak.in: remove unused definitions
authorJunio C Hamano <gitster@pobox.com>
Sun, 3 Feb 2013 01:58:49 +0000 (17:58 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Feb 2013 00:31:01 +0000 (16:31 -0800)
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>
Makefile
config.mak.in
index 26b697d1756dac4f37e04b8857ca9ea15df7d18d..1dae2c5bf1c5fea96b934d814263a26175953614 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -359,7 +359,7 @@ lib = lib
 # DESTDIR=
 pathsep = :
 
-export prefix bindir sharedir sysconfdir gitwebdir localedir
+export prefix bindir sharedir mandir htmldir sysconfdir gitwebdir localedir
 
 CC = cc
 AR = ar
index 802d34223a2859ee1341d94ee722d7939b7276aa..947ca5776acfb08558c4d79b2a0eca1142dff977 100644 (file)
@@ -13,7 +13,6 @@ DIFF = @DIFF@
 TCLTK_PATH = @TCLTK_PATH@
 
 prefix = @prefix@
-exec_prefix = @exec_prefix@
 bindir = @bindir@
 gitexecdir = @libexecdir@/git-core
 datarootdir = @datarootdir@
@@ -22,12 +21,6 @@ sysconfdir = @sysconfdir@
 
 mandir=@mandir@
 
-srcdir = @srcdir@
-VPATH = @srcdir@
-
-export exec_prefix mandir
-export srcdir VPATH
-
 NEEDS_SSL_WITH_CRYPTO=@NEEDS_SSL_WITH_CRYPTO@
 NO_OPENSSL=@NO_OPENSSL@
 NO_CURL=@NO_CURL@