Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: add/remove comments at top and tweak whitespace
author
Ævar Arnfjörð Bjarmason
<avarab@gmail.com>
Fri, 22 Feb 2019 14:41:24 +0000
(15:41 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 24 Feb 2019 15:32:39 +0000
(07:32 -0800)
The top of the Makfile is mostly separated into logical steps like set
default configuration, set programs etc., but there's some deviation
from that.
Let's add mostly comments where they're missing, remove those that
don't add anything. The whitespace tweaking makes subsequent patches
smaller.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
9559f8f
)
diff --git
a/Makefile
b/Makefile
index c53727e44bbf64b13bb2a80aadc40b651b2780b6..0870fd4651afd75a2ad0841dcf45cca4d997c9b1 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-507,15
+507,14
@@
GIT-VERSION-FILE: FORCE
-include GIT-VERSION-FILE
# CFLAGS and LDFLAGS are for the users to override from the command line.
-include GIT-VERSION-FILE
# CFLAGS and LDFLAGS are for the users to override from the command line.
-
CFLAGS = -g -O2 -Wall
LDFLAGS =
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
CFLAGS = -g -O2 -Wall
LDFLAGS =
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
ALL_LDFLAGS = $(LDFLAGS)
-
-# Create as necessary, replace existing, make ranlib unneeded.
ARFLAGS = rcs
ARFLAGS = rcs
+# Set our default configuration.
+#
# Among the variables below, these:
# gitexecdir
# template_dir
# Among the variables below, these:
# gitexecdir
# template_dir
@@
-560,6
+559,7
@@
perllibdir_relative = $(patsubst $(prefix)/%,%,$(perllibdir))
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
+# Set our default programs
CC = cc
AR = ar
RM = rm -f
CC = cc
AR = ar
RM = rm -f
@@
-587,10
+587,6
@@
SP_EXTRA_FLAGS =
SPATCH_FLAGS = --all-includes --patch .
SPATCH_FLAGS = --all-includes --patch .
-
-
-### --- END CONFIGURATION SECTION ---
-
BASIC_CFLAGS = -I.
BASIC_LDFLAGS =
BASIC_CFLAGS = -I.
BASIC_LDFLAGS =