Skip to content

Commit 65260a4

Browse files
avargitster
authored andcommitted
Makefile: add/remove comments at top and tweak whitespace
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9559f8f commit 65260a4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -507,15 +507,14 @@ GIT-VERSION-FILE: FORCE
507507
-include GIT-VERSION-FILE
508508

509509
# CFLAGS and LDFLAGS are for the users to override from the command line.
510-
511510
CFLAGS = -g -O2 -Wall
512511
LDFLAGS =
513512
ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS)
514513
ALL_LDFLAGS = $(LDFLAGS)
515-
516-
# Create as necessary, replace existing, make ranlib unneeded.
517514
ARFLAGS = rcs
518515

516+
# Set our default configuration.
517+
#
519518
# Among the variables below, these:
520519
# gitexecdir
521520
# template_dir
@@ -560,6 +559,7 @@ perllibdir_relative = $(patsubst $(prefix)/%,%,$(perllibdir))
560559

561560
export prefix bindir sharedir sysconfdir gitwebdir perllibdir localedir
562561

562+
# Set our default programs
563563
CC = cc
564564
AR = ar
565565
RM = rm -f
@@ -587,10 +587,6 @@ SP_EXTRA_FLAGS =
587587

588588
SPATCH_FLAGS = --all-includes --patch .
589589

590-
591-
592-
### --- END CONFIGURATION SECTION ---
593-
594590
BASIC_CFLAGS = -I.
595591
BASIC_LDFLAGS =
596592

0 commit comments

Comments
 (0)