]> git.ipfire.org Git - thirdparty/git.git/commitdiff
scalar Makefile: use "The default target of..." pattern
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 3 Mar 2022 16:04:12 +0000 (17:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Mar 2022 22:14:54 +0000 (14:14 -0800)
Make the "contrib/scalar/Makefile" be stylistically consistent with
the top-level "Makefile" in first declaring "all" to be the default
rule, followed by including other Makefile snippets.

This adjusts code added in 0a43fb22026 (scalar: create a rudimentary
executable, 2021-12-03), it further ensures that when we add another
"include" file in a subsequent commit that the included file won't be
the one to define our default target.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/scalar/Makefile

index 231b1ee17963c5d41a1667428ea7e64f8ac285c3..1e9b969f3df98c4da0142b5c015636a938c81886 100644 (file)
@@ -1,3 +1,10 @@
+# The default target of this Makefile is...
+all::
+
+include ../../config.mak.uname
+-include ../../config.mak.autogen
+-include ../../config.mak
+
 QUIET_SUBDIR0  = +$(MAKE) -C # space to separate -C and subdir
 QUIET_SUBDIR1  =
 
@@ -12,12 +19,6 @@ else
 endif
 endif
 
-all:
-
-include ../../config.mak.uname
--include ../../config.mak.autogen
--include ../../config.mak
-
 TARGETS = scalar$(X) scalar.o
 GITLIBS = ../../common-main.o ../../libgit.a ../../xdiff/lib.a